Fix extension filter in usetting

Signed-off-by: anasty17 <e.anastayyar@gmail.com>
This commit is contained in:
anasty17 2024-05-21 19:49:09 +03:00
parent 61510bec2c
commit 1e0bc1d427
2 changed files with 5 additions and 8 deletions

View File

@ -317,7 +317,7 @@ quotes, even if it's `Int`, `Bool` or `List`.
- `LEECH_FILENAME_PREFIX`: Add custom word to leeched file name. `Str`
- `LEECH_DUMP_CHAT`: ID or USERNAME or PM(private message) to where files would be uploaded. `Int`|`Str`. Add `-100` before channel/superGroup id.
**7. qBittorrent/Aria2c**
**7. qBittorrent/Aria2c/Sabnzbd**
- `TORRENT_TIMEOUT`: Timeout of dead torrents downloading with qBittorrent and Aria2c in seconds. `Int`
- `BASE_URL`: Valid BASE URL where the bot is deployed to use torrent web files selection. Format of URL should
@ -431,7 +431,7 @@ sudo docker stop id
change it in [docker-compose.yml](https://github.com/anasty17/mirror-leech-telegram-bot/blob/master/docker-compose.yml)
also.
- Install docker-compose
- Install docker compose plugin
```
sudo apt install docker-compose-plugin
@ -467,10 +467,6 @@ sudo docker compose start
sudo docker compose logs --follow
```
- Tutorial video from Tortoolkit repo for docker-compose and checking ports
<p><a href="https://youtu.be/c8_TU1sPK08"> <img src="https://img.shields.io/badge/See%20Video-black?style=for-the-badge&logo=YouTube" width="160""/></a></p>
------
**IMPORTANT NOTES**:

View File

@ -167,11 +167,12 @@ class TaskConfig:
if self.nameSub:
self.nameSub = [x.split(" : ") for x in self.nameSub.split(" | ")]
self.seed = False
self.extensionFilter = (
self.userDict.get("excluded_extensions") or GLOBAL_EXTENSION_FILTER
self.extensionFilter = self.userDict.get("excluded_extensions") or (
GLOBAL_EXTENSION_FILTER
if "excluded_extensions" not in self.userDict
else ["aria2", "!qB"]
)
LOGGER.info(self.extensionFilter)
if self.link not in ["rcl", "gdl"]:
if not self.isYtDlp and not self.isJd:
await self.isTokenExists(self.link, "dl")