From ab98e04a760a6ffb2e888e3b167465546886e888 Mon Sep 17 00:00:00 2001 From: Alessio Mattino Date: Sat, 15 Mar 2025 21:53:36 +0100 Subject: [PATCH] Fixed issues related to TV series for the Telegram bot. --- .../Api/Site/streamingcommunity/series.py | 6 +++++- StreamingCommunity/Util/table.py | 12 +++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/StreamingCommunity/Api/Site/streamingcommunity/series.py b/StreamingCommunity/Api/Site/streamingcommunity/series.py index 1b38cd3..0f64b86 100644 --- a/StreamingCommunity/Api/Site/streamingcommunity/series.py +++ b/StreamingCommunity/Api/Site/streamingcommunity/series.py @@ -185,7 +185,11 @@ def download_series(select_season: MediaItem) -> None: index_season_selected = bot.ask( "select_title_episode", - "Inserisci il numero della stagione (es. 1), * per scaricare tutte le stagioni, (es. 1-2) per un intervallo di stagioni, o (es. 3-*) per scaricare dalla stagione specificata fino alla fine", + "Menu di selezione delle stagioni\n\n" + "- Inserisci il numero della stagione (ad esempio, 1)\n" + "- Inserisci * per scaricare tutte le stagioni\n" + "- Inserisci un intervallo di stagioni (ad esempio, 1-2) per scaricare da una stagione all'altra\n" + "- Inserisci (ad esempio, 3-*) per scaricare dalla stagione specificata fino alla fine della serie", None ) diff --git a/StreamingCommunity/Util/table.py b/StreamingCommunity/Util/table.py index 477fbb5..5a13518 100644 --- a/StreamingCommunity/Util/table.py +++ b/StreamingCommunity/Util/table.py @@ -147,9 +147,14 @@ class TVShowManager: if not force_int_input: prompt_msg = ("\n[cyan]Insert media index [yellow](e.g., 1), [red]* [cyan]to download all media, " "[yellow](e.g., 1-2) [cyan]for a range of media, or [yellow](e.g., 3-*) [cyan]to download from a specific index to the end") + telegram_msg = "Menu di selezione degli episodi: \n\n" \ + "- Inserisci il numero dell'episodio (ad esempio, 1)\n" \ + "- Inserisci * per scaricare tutti gli episodi\n" \ + "- Inserisci un intervallo di episodi (ad esempio, 1-2) per scaricare da un episodio all'altro\n" \ + "- Inserisci (ad esempio, 3-*) per scaricare dall'episodio specificato fino alla fine della serie" if is_telegram: - key = bot.ask("select_title_episode", prompt_msg, None) + key = bot.ask("select_title_episode", telegram_msg, None) else: key = Prompt.ask(prompt_msg) else: @@ -183,6 +188,11 @@ class TVShowManager: if not force_int_input: prompt_msg = ("\n[cyan]Insert media index [yellow](e.g., 1), [red]* [cyan]to download all media, " "[yellow](e.g., 1-2) [cyan]for a range of media, or [yellow](e.g., 3-*) [cyan]to download from a specific index to the end") + telegram_msg = "Menu di selezione degli episodi: \n\n" \ + "- Inserisci il numero dell'episodio (ad esempio, 1)\n" \ + "- Inserisci * per scaricare tutti gli episodi\n" \ + "- Inserisci un intervallo di episodi (ad esempio, 1-2) per scaricare da un episodio all'altro\n" \ + "- Inserisci (ad esempio, 3-*) per scaricare dall'episodio specificato fino alla fine della serie" if is_telegram: key = bot.ask("select_title_episode", prompt_msg, None)