From 0d53c8c292c421f2f2cd790efb6e4cdd97bec11b Mon Sep 17 00:00:00 2001 From: Melon Bread Date: Wed, 10 Apr 2024 12:29:57 -0400 Subject: [PATCH] Added notes on what to work on --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index e913da4..da0244c 100755 --- a/main.py +++ b/main.py @@ -114,6 +114,8 @@ def main() -> None: for channel in channel_list: channel = channel.strip() # TODO: Have steamlink itself check if the channel is live + # TODO: Have checking if channel is live in its own function + # TODO: If the request erros out just move on and not break the program contents = requests.get("https://www.twitch.tv/" + channel).content.decode( "utf-8" ) @@ -122,12 +124,14 @@ def main() -> None: if channel not in downloading: download_stream(channel) else: + # TODO: Format this and dont make its own line print(f"{channel} is already downloading") # write_log(channel) else: print("\033[1m" + channel + "\033[0m is \033[31mnot live\033[0m.") if channel in downloading: del downloading[channel] + # TODO: Format this and dont make its own line print(f"{channel} is no longer downloading") time.sleep(1) # Wait one second before going to next channel print(