summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2016-05-22 20:37:09 -0700
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2016-05-22 20:37:09 -0700
commit98e32215e401fef3bdfb4d34584b49e3ad1f44eb (patch)
tree059e9474d0dc1a24043d9af0b3d5c3e01de7d69c
parent63ae6eea839d2ee7dce690f30d6acffb29b7fe5b (diff)
downloadtwitchtools-98e32215e401fef3bdfb4d34584b49e3ad1f44eb.tar.gz
twitchtools-98e32215e401fef3bdfb4d34584b49e3ad1f44eb.zip
lstwitch.rb: add follower stats
-rwxr-xr-xlstwitch.rb2
1 files changed, 1 insertions, 1 deletions
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