diff options
author | Joe Rayhawk <jrayhawk@omgwallhack.org> | 2016-09-17 17:08:43 -0700 |
---|---|---|
committer | Joe Rayhawk <jrayhawk@omgwallhack.org> | 2016-09-17 17:08:43 -0700 |
commit | 27c1c62e10abf7a132b126c2a27981eefad47cb1 (patch) | |
tree | 672cdcd1bc18ee2ada0c2bd15c20e4b69846332d /lstwitchfollowers.rb | |
parent | 5122abf401a0210a3202a49389301a461351f3e6 (diff) | |
download | twitchtools-27c1c62e10abf7a132b126c2a27981eefad47cb1.tar.gz twitchtools-27c1c62e10abf7a132b126c2a27981eefad47cb1.zip |
lstwitchfollowers.rb: stream API interface to use newly required client_id
Diffstat (limited to 'lstwitchfollowers.rb')
-rwxr-xr-x | lstwitchfollowers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lstwitchfollowers.rb b/lstwitchfollowers.rb index 4ee51d6..a5c3076 100755 --- a/lstwitchfollowers.rb +++ b/lstwitchfollowers.rb @@ -36,7 +36,7 @@ def followers(http, path, key, width, client_id) total = response['_total'] for channel in response['follows'] name = channel[key]['name'] - stream = JSON.parse(http.request(Net::HTTP::Get.new("/kraken/streams/#{name}")).body)['stream'] + stream = JSON.parse(http.request(Net::HTTP::Get.new("/kraken/streams/#{name}?client_id=#{client_id}")).body)['stream'] if stream printf( "%-45s %-36s %6i %6i %-.#{width-46-37-7-7}s\n", "ONLINE twitch.tv/#{name}", stream['channel']['game'].to_s, stream['viewers'], stream['channel']['followers'], stream['channel']['status'].to_s.gsub(/\n/,'') ) # print(" #{stream['game']} #{stream['channel']['status']}") |