diff options
-rwxr-xr-x | lstwitch.rb | 3 | ||||
-rwxr-xr-x | lstwitchvid.rb | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lstwitch.rb b/lstwitch.rb index 8c7b4a2..be3d233 100755 --- a/lstwitch.rb +++ b/lstwitch.rb @@ -10,6 +10,9 @@ unless ARGV.empty? if ARGV[0] == 'APB' or ARGV[0] == 'apb' game = "&game=APB%20Reloaded" end + if ARGV[0] == 'PUBG' or ARGV[0] == 'pubg' + game = "&game=#{URI.escape("PLAYERUNKNOWN'S BATTLEGROUNDS")}" + end end confdir = Dir.home + '/.config/twitch/' diff --git a/lstwitchvid.rb b/lstwitchvid.rb index c8dd7b5..fc269d1 100755 --- a/lstwitchvid.rb +++ b/lstwitchvid.rb @@ -38,7 +38,7 @@ def videos(http, path, width, broadcasts, client_id) if response['videos'] total = response['_total'] for video in response['videos'] - printf( "%-45s %6i %6i %-36s %-.#{width-46-37-7-7}s\n", video['url'].to_s, video['length'].to_i, video['views'].to_i, video['game'].to_s, video['title'].to_s) + printf( "%-45s %s %6i %6i %-36s %-.#{width-46-37-7-7}s\n", video['url'].to_s, video['recorded_at'].to_s, video['length'].to_i, video['views'].to_i, video['game'].to_s, video['title'].to_s) # Curses.cols end end |