From e0a1e28625039b357f4f4f725af705298956baec Mon Sep 17 00:00:00 2001 From: None <62809003+Arrowar@users.noreply.github.com> Date: Sat, 17 May 2025 09:54:18 +0200 Subject: [PATCH] Update config.json --- README.md | 18 ++++++++---------- .../Api/Site/streamingcommunity/__init__.py | 4 +--- config.json | 4 ++-- 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 8018fc1..7ff53c4 100644 --- a/README.md +++ b/README.md @@ -748,26 +748,24 @@ The `run-container` command mounts also the `config.json` file, so any change to The bot was created to replace terminal commands and allow interaction via Telegram. Each download runs within a screen session, enabling multiple downloads to run simultaneously. To run the bot in the background, simply start it inside a screen session and then press Ctrl + A, followed by D, to detach from the session without stopping the bot. - - -
-🤖 Bot Commands Command Functions: 🔹 /start – Starts a new search for a download. This command performs the same operations as manually running the script in the terminal with test_run.py. 🔹 /list – Displays the status of active downloads, with options to: -- Stop an incorrect download using /stop -- View the real-time output of a download using /screen + +Stop an incorrect download using /stop . + +View the real-time output of a download using /screen . ⚠ Warning: If a download is interrupted, incomplete files may remain in the folder specified in config.json. These files must be deleted manually to avoid storage or management issues. -
-
-🔧 Environment Setup +🛠 Configuration: Currently, the bot's settings are stored in the config.json file, which is located in the same directory as the telegram_bot.py script. -Create an `.env` file with: +## .env Example: + +You need to create an .env file and enter your Telegram token and user ID to authorize only one user to use it ``` TOKEN_TELEGRAM=IlTuo2131TOKEN$12D3Telegram diff --git a/StreamingCommunity/Api/Site/streamingcommunity/__init__.py b/StreamingCommunity/Api/Site/streamingcommunity/__init__.py index ca47530..944b2b7 100644 --- a/StreamingCommunity/Api/Site/streamingcommunity/__init__.py +++ b/StreamingCommunity/Api/Site/streamingcommunity/__init__.py @@ -17,13 +17,11 @@ from StreamingCommunity.Api.Template.config_loader import site_constant from StreamingCommunity.Api.Template.Class.SearchType import MediaItem from StreamingCommunity.TelegramHelp.telegram_bot import get_bot_instance - # Logic class from .site import title_search, table_show_manager, media_search_manager from .film import download_film from .series import download_series - # Variable indice = 0 _useFor = "Film_&_Serie" @@ -79,7 +77,7 @@ def process_search_result(select_title, selections=None, proxy=None): download_series(select_title, season_selection, episode_selection, proxy) else: - download_film(select_title) + download_film(select_title, proxy) # Assuming download_film also needs proxy def search(string_to_search: str = None, get_onlyDatabase: bool = False, direct_item: dict = None, selections: dict = None): """ diff --git a/config.json b/config.json index 5a7c25a..640c87d 100644 --- a/config.json +++ b/config.json @@ -29,7 +29,7 @@ "default_video_workser": 12, "default_audio_workser": 12, "segment_timeout": 8, - "download_audio": false, + "download_audio": true, "merge_audio": true, "specific_list_audio": [ "ita" @@ -60,4 +60,4 @@ "max_retry": 8, "proxy": "" } -} \ No newline at end of file +}