Update config.json

This commit is contained in:
None 2025-05-17 09:54:18 +02:00 committed by l1n00
parent 82e2348ba8
commit e0a1e28625
3 changed files with 11 additions and 15 deletions

View File

@ -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. 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. 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.
</details>
<details>
<summary>🤖 Bot Commands</summary>
Command Functions: 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. 🔹 /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: 🔹 /list Displays the status of active downloads, with options to:
- Stop an incorrect download using /stop <ID>
- View the real-time output of a download using /screen <ID> Stop an incorrect download using /stop <ID>.
View the real-time output of a download using /screen <ID>.
⚠ 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. ⚠ 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.
</details>
<details> 🛠 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.
<summary>🔧 Environment Setup</summary>
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 TOKEN_TELEGRAM=IlTuo2131TOKEN$12D3Telegram

View File

@ -17,13 +17,11 @@ from StreamingCommunity.Api.Template.config_loader import site_constant
from StreamingCommunity.Api.Template.Class.SearchType import MediaItem from StreamingCommunity.Api.Template.Class.SearchType import MediaItem
from StreamingCommunity.TelegramHelp.telegram_bot import get_bot_instance from StreamingCommunity.TelegramHelp.telegram_bot import get_bot_instance
# Logic class # Logic class
from .site import title_search, table_show_manager, media_search_manager from .site import title_search, table_show_manager, media_search_manager
from .film import download_film from .film import download_film
from .series import download_series from .series import download_series
# Variable # Variable
indice = 0 indice = 0
_useFor = "Film_&_Serie" _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) download_series(select_title, season_selection, episode_selection, proxy)
else: 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): def search(string_to_search: str = None, get_onlyDatabase: bool = False, direct_item: dict = None, selections: dict = None):
""" """

View File

@ -29,7 +29,7 @@
"default_video_workser": 12, "default_video_workser": 12,
"default_audio_workser": 12, "default_audio_workser": 12,
"segment_timeout": 8, "segment_timeout": 8,
"download_audio": false, "download_audio": true,
"merge_audio": true, "merge_audio": true,
"specific_list_audio": [ "specific_list_audio": [
"ita" "ita"
@ -60,4 +60,4 @@
"max_retry": 8, "max_retry": 8,
"proxy": "" "proxy": ""
} }
} }