From b482d944f1270c09f5b598ac542627c8bcd5ef65 Mon Sep 17 00:00:00 2001 From: GiuPic <47813665+GiuPic@users.noreply.github.com> Date: Tue, 11 Feb 2025 12:51:36 +0100 Subject: [PATCH] fix command screen (#259) --- StreamingCommunity/Lib/Downloader/HLS/segments.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/StreamingCommunity/Lib/Downloader/HLS/segments.py b/StreamingCommunity/Lib/Downloader/HLS/segments.py index 7974438..1c9c8ce 100644 --- a/StreamingCommunity/Lib/Downloader/HLS/segments.py +++ b/StreamingCommunity/Lib/Downloader/HLS/segments.py @@ -49,6 +49,7 @@ DEFAULT_AUDIO_WORKERS = config_manager.get_int('M3U8_DOWNLOAD', 'default_audio_w MAX_TIMEOOUT = config_manager.get_int("REQUESTS", "timeout") MAX_INTERRUPT_COUNT = 3 SEGMENT_MAX_TIMEOUT = config_manager.get_int("M3U8_DOWNLOAD", "segment_timeout") +TELEGRAM_BOT = config_manager.get_bool('DEFAULT', 'telegram_bot') @@ -323,6 +324,10 @@ class M3U8_Segments: - description: Description to insert on tqdm bar - type (str): Type of download: 'video' or 'audio' """ + if TELEGRAM_BOT: + # Viene usato per lo screen + console.log("####") + self.get_info() self.setup_interrupt_handler()