Мелкие правки, обновление/удаление зависимостей

This commit is contained in:
lulzette 2023-06-02 09:52:18 +03:00
parent a9fa313605
commit 8b93791077
2 changed files with 5 additions and 5 deletions

View File

@ -220,14 +220,15 @@ if __name__ == "__main__":
# Log config
log = get_logger("main")
log.info("Запущен")
# Проверять стримы раз в check_period
schedule.every(int(config['app']['check_period'])).seconds.do(check_stream)
# Каждый час удалять старые стримы
schedule.every(int(config['app']['check_period'])).seconds.do(check_stream)
schedule.every(1).hours.do(remove_old_streams)
# Инициализируем клиент твича
twitch_client = Twitch(config['twitch']['app_id'], config['twitch']['app_secret'])
log.info("Запущен")
while True:
schedule.run_pending()
time.sleep(1)

View File

@ -1,4 +1,3 @@
youtube-dl==2021.4.17
youtube-dl==2021.12.17
twitchAPI==2.5.7.1
schedule
termcolor
schedule==1.2.0