diff --git a/daemon.py b/daemon.py index bf82480..404cc40 100755 --- a/daemon.py +++ b/daemon.py @@ -14,6 +14,8 @@ import subprocess import time import logging from logging.handlers import TimedRotatingFileHandler +from termcolor import colored + streamers = config_python.streamers client_id = config_python.twitchid log_format = logging.Formatter('%(asctime)s %(levelname)s:%(message)s') @@ -94,7 +96,13 @@ def checkAlive(): startRecord(i) os.system("touch "+path+"/pid") else: - log.info(i + " Идет запись") + log.info( + colored( + "Идет запись " + i, + 'red', + attrs=['bold'] + ) + ) else: # Если стрим не идет, то пишем об этом и убираем его из залоченных log.info(i + " Не стримит") diff --git a/requirements.txt b/requirements.txt index 7c433f4..1e4de30 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ youtube-dl==2021.4.17 python-twitch-client==0.7.1 -schedule \ No newline at end of file +schedule +termcolor