mirror of
https://gitgud.io/Melon__Bread/auto-ttv-grabber.git
synced 2024-11-28 10:18:21 -05:00
Disable broken logging
This commit is contained in:
parent
65efcbb171
commit
1ce273bc61
3
main.py
3
main.py
@ -49,6 +49,7 @@ def load_config() -> None:
|
|||||||
print("Config file loaded")
|
print("Config file loaded")
|
||||||
|
|
||||||
|
|
||||||
|
# TODO: Log better and properly
|
||||||
def write_log(channel: str) -> None:
|
def write_log(channel: str) -> None:
|
||||||
"""Writes the latest stdout of a process to log.txt"""
|
"""Writes the latest stdout of a process to log.txt"""
|
||||||
with open("log.txt", "a") as log:
|
with open("log.txt", "a") as log:
|
||||||
@ -122,7 +123,7 @@ def main() -> None:
|
|||||||
download_stream(channel)
|
download_stream(channel)
|
||||||
else:
|
else:
|
||||||
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user