You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See [Torrent example](./Test/Downloads/TOR.py) for complete usage.
146
-
147
132
<summary>🎞️ DASH</summary>
148
133
149
134
```python
@@ -223,21 +208,6 @@ You can change some behaviors by tweaking the configuration file. The configurat
223
208
#### Additional Options
224
209
-`add_siteName`: Appends site_name to root path (can be changed with `--add_siteName true/false`)
225
210
226
-
<summary>🔄 QBIT_CONFIG Settings</summary>
227
-
228
-
```json
229
-
{
230
-
"QBIT_CONFIG": {
231
-
"host": "192.168.1.51",
232
-
"port": "6666",
233
-
"user": "admin",
234
-
"pass": "adminadmin"
235
-
}
236
-
}
237
-
```
238
-
239
-
To enable qBittorrent integration, follow the setup guide [here](https://github.com/lgallard/qBittorrent-Controller/wiki/How-to-enable-the-qBittorrent-Web-UI).
python test_run.py --category 1 # Search in anime category
441
411
python test_run.py --category 2 # Search in movies & series
442
412
python test_run.py --category 3 # Search in series
443
-
python test_run.py --category 4 # Search in torrent category
444
413
```
445
414
446
415
### PyPI Installation Usage
@@ -590,78 +559,6 @@ make LOCAL_DIR=/path/to/download run-container
590
559
The `run-container` command mounts also the `config.json` file, so any change to the configuration file is reflected immediately without having to rebuild the image.
591
560
592
561
593
-
# Telegram Usage
594
-
595
-
<summary>⚙️ Basic Configuration</summary>
596
-
597
-
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.
598
-
599
-
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.
600
-
601
-
Command Functions:
602
-
603
-
🔹 /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.
604
-
605
-
🔹 /list – Displays the status of active downloads, with options to:
606
-
607
-
Stop an incorrect download using /stop <ID>.
608
-
609
-
View the real-time output of a download using /screen <ID>.
610
-
611
-
⚠ 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.
612
-
613
-
🛠 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.
614
-
615
-
## .env Example:
616
-
617
-
You need to create an .env file and enter your Telegram token and user ID to authorize only one user to use it
618
-
619
-
```
620
-
TOKEN_TELEGRAM=IlTuo2131TOKEN$12D3Telegram
621
-
AUTHORIZED_USER_ID=12345678
622
-
DEBUG=False
623
-
```
624
-
625
-
<summary>📥 Dependencies & Launch</summary>
626
-
627
-
Install dependencies:
628
-
```bash
629
-
pip install -r requirements.txt
630
-
```
631
-
632
-
Start the bot (from /StreamingCommunity/TelegramHelp):
633
-
```bash
634
-
python3 telegram_bot.py
635
-
```d
636
-
- 🔹 `/list` – Displays the status of active downloads, with options to:
637
-
- Stop an incorrect download using `/stop <ID>`
638
-
- View the real-time output of a download using `/screen <ID>`
639
-
640
-
⚠️ **Warning:** If a download is interrupted, incomplete files may remain in the folder specified in config.json. These files must be deleted manually.
641
-
642
-
#### Setup
643
-
1. Create an `.env` file with your Telegram token and user ID:
644
-
```env
645
-
TOKEN_TELEGRAM=IlTuo2131TOKEN$12D3Telegram
646
-
AUTHORIZED_USER_ID=12345678
647
-
DEBUG=False
648
-
```
649
-
650
-
2. Install dependencies:
651
-
```bash
652
-
pip install -r requirements.txt
653
-
```
654
-
655
-
3. Start the bot (from `/StreamingCommunity/TelegramHelp`):
656
-
```bash
657
-
python3 telegram_bot.py
658
-
```
659
-
660
-
**Running in background:**
661
-
Start the bot inside a screen session and press Ctrl + A, followed by D, to detach from the session without stopping the bot.
0 commit comments