mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 12:05:35 +00:00
Fixed issues related to TV series for the Telegram bot.
This commit is contained in:
parent
542b090434
commit
ab98e04a76
@ -185,7 +185,11 @@ def download_series(select_season: MediaItem) -> None:
|
|||||||
|
|
||||||
index_season_selected = bot.ask(
|
index_season_selected = bot.ask(
|
||||||
"select_title_episode",
|
"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
|
None
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -147,9 +147,14 @@ class TVShowManager:
|
|||||||
if not force_int_input:
|
if not force_int_input:
|
||||||
prompt_msg = ("\n[cyan]Insert media index [yellow](e.g., 1), [red]* [cyan]to download all media, "
|
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")
|
"[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:
|
if is_telegram:
|
||||||
key = bot.ask("select_title_episode", prompt_msg, None)
|
key = bot.ask("select_title_episode", telegram_msg, None)
|
||||||
else:
|
else:
|
||||||
key = Prompt.ask(prompt_msg)
|
key = Prompt.ask(prompt_msg)
|
||||||
else:
|
else:
|
||||||
@ -183,6 +188,11 @@ class TVShowManager:
|
|||||||
if not force_int_input:
|
if not force_int_input:
|
||||||
prompt_msg = ("\n[cyan]Insert media index [yellow](e.g., 1), [red]* [cyan]to download all media, "
|
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")
|
"[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:
|
if is_telegram:
|
||||||
key = bot.ask("select_title_episode", prompt_msg, None)
|
key = bot.ask("select_title_episode", prompt_msg, None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user