diff options
author | Joe Rayhawk <jrayhawk@action.fairlystable.org> | 2023-05-03 01:36:38 -0700 |
---|---|---|
committer | Joe Rayhawk <jrayhawk@action.fairlystable.org> | 2023-05-03 01:36:38 -0700 |
commit | d5858e2ef8f382b9e53308301ff7c7df3bf4b745 (patch) | |
tree | 88d3239f1a693f8702eac4d41490a3c95a21bf1d /util/twitch.cr | |
parent | a5ae979dba586526b18f9a2a08f2748b3968aea0 (diff) | |
download | twitcr-d5858e2ef8f382b9e53308301ff7c7df3bf4b745.tar.gz twitcr-d5858e2ef8f382b9e53308301ff7c7df3bf4b745.zip |
enable unfiltered stream listing
Diffstat (limited to 'util/twitch.cr')
-rw-r--r-- | util/twitch.cr | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/util/twitch.cr b/util/twitch.cr index 87908ae..43980d0 100644 --- a/util/twitch.cr +++ b/util/twitch.cr @@ -60,7 +60,11 @@ when "clips" when "game" pp JSON.parse( client.get_games( ARGV[1].to_u64? || ARGV[1] ) ) when "streams" - list_streams( settings, JSON.parse( client.get_streams( game_id = client.game_id( ARGV[1] ) ) ) ) + if ARGV[1]? + list_streams( settings, JSON.parse( client.get_streams( game_id = client.game_id( ARGV[1] ) ) ) ) + else + list_streams( settings, JSON.parse( client.get_streams() ) ) + end when "streams_kraken" list_streams_v5( settings, client, ARGV[1] ) when "hosts" |