summaryrefslogtreecommitdiff
path: root/lstwitchfollowers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lstwitchfollowers.rb')
-rwxr-xr-xlstwitchfollowers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstwitchfollowers.rb b/lstwitchfollowers.rb
index 8faebbb..ccd5355 100755
--- a/lstwitchfollowers.rb
+++ b/lstwitchfollowers.rb
@@ -45,10 +45,10 @@ def followers(http, path, key, client_id)
name = channel[key]['name']
stream = twitchrequest( http, '/kraken/streams/' + name, 0, client_id )['stream']
if stream
- printfollow( stream['viewers'], name, stream['channel']['game'].to_s, stream['channel']['followers'], stream['channel']['status'].to_s.gsub(/\n/,'') )
+ printfollow( stream['viewers'], name, stream['channel']['game'].to_s, stream['channel']['followers'].to_i, stream['channel']['status'].to_s.gsub(/\n/,'') )
else
profile = twitchrequest( http, '/kraken/channels/' + name, 0, client_id )
- printfollow( '', name, profile['game'].to_s, profile['followers'], profile['status'].to_s.gsub(/\n/,'') )
+ printfollow( '', name, profile['game'].to_s, profile['followers'].to_i, profile['status'].to_s.gsub(/\n/,'') )
end
end
offset += 100