From dd340b8caa6101a322a96f386210b2fb2bd502c6 Mon Sep 17 00:00:00 2001 From: Lulzette Date: Thu, 23 Sep 2021 06:27:54 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=86=D0=B2=D0=B5=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- daemon.py | 10 +++++++++- requirements.txt | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) 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