From bd501f610291cdef3b8028247faa8c1e7f0b09df Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Tue, 22 May 2018 18:53:25 -0700 Subject: lstwitchfollowres.rb: more explicit casting --- lstwitchfollowers.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lstwitchfollowers.rb') 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 -- cgit v1.2.3