From 98e32215e401fef3bdfb4d34584b49e3ad1f44eb Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Sun, 22 May 2016 20:37:09 -0700 Subject: lstwitch.rb: add follower stats --- lstwitch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lstwitch.rb') diff --git a/lstwitch.rb b/lstwitch.rb index 92e5255..f3194db 100755 --- a/lstwitch.rb +++ b/lstwitch.rb @@ -26,7 +26,7 @@ while offset < total response = JSON.parse(http.request(Net::HTTP::Get.new("/kraken/streams/?offset=#{offset}#{game}")).body) total = response["_total"] for stream in response['streams'] - printf( "%-45s %-36s %6i %-.#{width-46-37-7}s\n", stream['channel']['url'].to_s, stream['channel']['game'].to_s, stream['viewers'], stream['channel']['status'].to_s.gsub(/\n/,'') ) + printf( "%-45s %-36s %6i %6i %-.#{width-46-37-7-7}s\n", stream['channel']['url'].to_s, stream['channel']['game'].to_s, stream['viewers'], stream['channel']['followers'], stream['channel']['status'].to_s.gsub(/\n/,'') ) end offset += 100 -- cgit v1.2.3