diff --git a/README.md b/README.md index f4ec6c44..32f47f9e 100644 --- a/README.md +++ b/README.md @@ -143,6 +143,7 @@ MoviePilot需要配套下载器和媒体服务器配合使用。 - **QB_USER:** qbittorrent用户名 - **QB_PASSWORD:** qbittorrent密码 - **QB_CATEGORY:** qbittorrent分类自动管理,`true`/`false`,默认`false`,开启后会将下载二级分类传递到下载器,由下载器管理下载目录,需要同步开启`DOWNLOAD_CATEGORY` + - **QB_SEQUENTIAL:** qbittorrent按顺序下载,`true`/`false`,默认`true` - `transmission`设置项: diff --git a/app/core/config.py b/app/core/config.py index 942df272..6131e626 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -129,6 +129,8 @@ class Settings(BaseSettings): QB_PASSWORD: str = None # Qbittorrent分类自动管理 QB_CATEGORY: bool = False + # Qbittorrent按顺序下载 + QB_SEQUENTIAL: bool = True # Transmission地址,IP:PORT TR_HOST: str = None # Transmission用户名 diff --git a/app/modules/qbittorrent/qbittorrent.py b/app/modules/qbittorrent/qbittorrent.py index a3a5ec42..b0acaf14 100644 --- a/app/modules/qbittorrent/qbittorrent.py +++ b/app/modules/qbittorrent/qbittorrent.py @@ -243,7 +243,7 @@ class Qbittorrent(metaclass=Singleton): is_paused=is_paused, tags=tags, use_auto_torrent_management=is_auto, - is_sequential_download=True, + is_sequential_download=settings.QB_SEQUENTIAL, cookie=cookie, category=category, **kwargs) diff --git a/config/app.env b/config/app.env index 1116b08a..ffb01a14 100644 --- a/config/app.env +++ b/config/app.env @@ -141,6 +141,8 @@ QB_USER= QB_PASSWORD= # Qbittorrent分类自动管理 QB_CATEGORY=false +# Qbittorrent按顺序下载 +QB_SEQUENTIAL=true # Transmission地址,IP:PORT TR_HOST= # Transmission用户名