From e3e99f38d6dd1742946f2bb24b5ac3b1f342aea6 Mon Sep 17 00:00:00 2001 From: RubyTemple Date: Mon, 17 Mar 2025 00:16:00 +0100 Subject: [PATCH] Solved Unexpected error: 'int' object has no attribute 'set_alpn_protocols' --- StreamingCommunity/Api/Site/altadefinizione/film.py | 2 +- StreamingCommunity/Lib/Downloader/HLS/segments.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/StreamingCommunity/Api/Site/altadefinizione/film.py b/StreamingCommunity/Api/Site/altadefinizione/film.py index 82d0975..c5c86c1 100644 --- a/StreamingCommunity/Api/Site/altadefinizione/film.py +++ b/StreamingCommunity/Api/Site/altadefinizione/film.py @@ -86,9 +86,9 @@ def download_film(select_title: MediaItem) -> str: except Exception as e: console.print(f"[red]Error fetching mostraguarda link: {e}") console.print("[yellow]Missing access credentials. This part of the code is still under development.") - console.print("[yellow]Missing access credentials. This part of the code is still under development.") if site_constant.TELEGRAM_BOT: bot.send_message(f"ERRORE\n\nErrore durante il recupero del link mostra/guarda.\n\n{e}", None) + bot.send_message(f"ERRORE\n\nCredenziali di accesso mancanti.\nQuesta parte del codice รจ ancora in fase di sviluppo.", None) return None # Create supervio URL diff --git a/StreamingCommunity/Lib/Downloader/HLS/segments.py b/StreamingCommunity/Lib/Downloader/HLS/segments.py index 3f2756c..2cf2088 100644 --- a/StreamingCommunity/Lib/Downloader/HLS/segments.py +++ b/StreamingCommunity/Lib/Downloader/HLS/segments.py @@ -37,7 +37,7 @@ from ...M3U8 import ( # Config TQDM_DELAY_WORKER = config_manager.get_float('M3U8_DOWNLOAD', 'tqdm_delay') REQUEST_MAX_RETRY = config_manager.get_int('REQUESTS', 'max_retry') -REQUEST_VERIFY = config_manager.get_int('REQUESTS', 'verify') +REQUEST_VERIFY = config_manager.get_bool('REQUESTS', 'verify') DEFAULT_VIDEO_WORKERS = config_manager.get_int('M3U8_DOWNLOAD', 'default_video_workser') DEFAULT_AUDIO_WORKERS = config_manager.get_int('M3U8_DOWNLOAD', 'default_audio_workser') MAX_TIMEOOUT = config_manager.get_int("REQUESTS", "timeout")