Added notes on what to work on

This commit is contained in:
Rain Clark 2024-04-10 12:29:57 -04:00
parent 1ce273bc61
commit 0d53c8c292

View File

@ -114,6 +114,8 @@ def main() -> None:
for channel in channel_list: for channel in channel_list:
channel = channel.strip() channel = channel.strip()
# TODO: Have steamlink itself check if the channel is live # 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( contents = requests.get("https://www.twitch.tv/" + channel).content.decode(
"utf-8" "utf-8"
) )
@ -122,12 +124,14 @@ def main() -> None:
if channel not in downloading: if channel not in downloading:
download_stream(channel) download_stream(channel)
else: else:
# TODO: Format this and dont make its own line
print(f"{channel} is already downloading") print(f"{channel} is already downloading")
# write_log(channel) # write_log(channel)
else: else:
print("\033[1m" + channel + "\033[0m is \033[31mnot live\033[0m.") print("\033[1m" + channel + "\033[0m is \033[31mnot live\033[0m.")
if channel in downloading: if channel in downloading:
del downloading[channel] del downloading[channel]
# TODO: Format this and dont make its own line
print(f"{channel} is no longer downloading") print(f"{channel} is no longer downloading")
time.sleep(1) # Wait one second before going to next channel time.sleep(1) # Wait one second before going to next channel
print( print(