From 176d4d599104c2f548d3e7130e54cc533acd0442 Mon Sep 17 00:00:00 2001 From: chenkun Date: Mon, 13 Jan 2025 17:33:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20ui=E5=8F=AF=E4=BB=A5=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E4=B8=BB=E8=BE=85=E4=B8=8B=E8=BD=BD=E5=99=A8=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=EF=BC=8C=E9=85=8D=E7=BD=AE=E5=90=8E=E5=BC=BA=E5=88=B6=E8=B5=B0?= =?UTF-8?q?=E8=BE=85=E7=A7=8D=E4=B8=8B=E8=BD=BD=E5=99=A8=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E8=BE=85=E7=A7=8D=E4=B8=8B=E8=BD=BD=E4=B8=8D=E9=80=9A=E6=97=B6?= =?UTF-8?q?=E8=B5=B0=E9=BB=98=E8=AE=A4=E5=AF=BC=E8=87=B4=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins.v2/iyuuautoseed/__init__.py | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/plugins.v2/iyuuautoseed/__init__.py b/plugins.v2/iyuuautoseed/__init__.py index e5fedbc..ef3ab7b 100644 --- a/plugins.v2/iyuuautoseed/__init__.py +++ b/plugins.v2/iyuuautoseed/__init__.py @@ -186,7 +186,7 @@ class IYUUAutoSeed(_PluginBase): return active_services @property - def auto_service_info(self) -> Optional[Dict[str, ServiceInfo]]: + def auto_service_info(self) -> ServiceInfo | None: """ 服务信息 """ @@ -376,6 +376,8 @@ class IYUUAutoSeed(_PluginBase): { 'component': 'VSelect', 'props': { + 'chips': True, + 'clearable': True, 'model': 'auto_downloader', 'label': '主辅分离', 'items': [{"title": config.name, "value": config.name} @@ -835,9 +837,14 @@ class IYUUAutoSeed(_PluginBase): logger.info(f"种子 {seed.get('info_hash')} 辅种失败且已缓存,跳过 ...") continue # 添加任务 如果配置了主辅分离使用辅种下载器 - success = self.__download_torrent(seed=seed, - service=self.auto_service_info if self.auto_service_info else service, - save_path=save_paths.get(current_hash)) + if self._auto_downloader: + success = self.__download_torrent(seed=seed, + service=self.auto_service_info, + save_path=save_paths.get(current_hash)) + else: + success = self.__download_torrent(seed=seed, + service=service, + save_path=save_paths.get(current_hash)) if success: success_torrents.append(seed.get("info_hash")) @@ -1334,4 +1341,4 @@ class IYUUAutoSeed(_PluginBase): self._sites = sites # 保存配置 - self.__update_config() + self.__update_config() \ No newline at end of file