diff options
author | Joe Rayhawk <jrayhawk@omgwallhack.org> | 2018-05-22 18:53:25 -0700 |
---|---|---|
committer | Joe Rayhawk <jrayhawk@omgwallhack.org> | 2018-05-22 18:53:25 -0700 |
commit | bd501f610291cdef3b8028247faa8c1e7f0b09df (patch) | |
tree | aadb478dcf328874ae5b496044d166d8c67f4c3d | |
parent | 026cfa6d20c186c69125212fd439eb100b445c96 (diff) | |
download | twitchtools-bd501f610291cdef3b8028247faa8c1e7f0b09df.tar.gz twitchtools-bd501f610291cdef3b8028247faa8c1e7f0b09df.zip |
lstwitchfollowres.rb: more explicit casting
-rwxr-xr-x | lstwitchfollowers.rb | 4 |
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 |