diff options
author | Joe Rayhawk <jrayhawk@omgwallhack.org> | 2016-08-10 16:09:19 -0700 |
---|---|---|
committer | Joe Rayhawk <jrayhawk@omgwallhack.org> | 2016-08-10 16:09:19 -0700 |
commit | 8d2dd49716c3bf9439e6f1ed192edf46570874de (patch) | |
tree | f732b27b5a55ae5e7cd66f2993efc25be6816d05 /lstwitch.rb | |
parent | 7067ef1a3de8c3f809e6d49ce5912c817ac0953f (diff) | |
download | twitchtools-8d2dd49716c3bf9439e6f1ed192edf46570874de.tar.gz twitchtools-8d2dd49716c3bf9439e6f1ed192edf46570874de.zip |
lstwitch and lstwitchfollowers: add width minimum to keep from breaking (FIXME: make more efficient use of space)
Diffstat (limited to 'lstwitch.rb')
-rwxr-xr-x | lstwitch.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lstwitch.rb b/lstwitch.rb index f3194db..be71fc0 100755 --- a/lstwitch.rb +++ b/lstwitch.rb @@ -21,6 +21,10 @@ total = 1 width = `stty size`.split[1].to_i +if width < 97 + width=97 +end + while offset < total response = JSON.parse(http.request(Net::HTTP::Get.new("/kraken/streams/?offset=#{offset}#{game}")).body) |