mirror of
https://gitgud.io/Melon__Bread/auto-ttv-grabber.git
synced 2024-11-28 18:28:24 -05:00
Added notes on what to work on
This commit is contained in:
parent
1ce273bc61
commit
0d53c8c292
4
main.py
4
main.py
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user