From 35778b1dd79d1ecfcaab47bd9ac18611270d641b Mon Sep 17 00:00:00 2001 From: thsrite Date: Thu, 10 Aug 2023 22:01:02 +0800 Subject: [PATCH] =?UTF-8?q?fix=20TR=E8=BF=9E=E6=8E=A5=E3=80=81=E5=88=A0?= =?UTF-8?q?=E7=A7=8D=E6=8F=92=E4=BB=B6state=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/transmission/transmission.py | 2 +- app/plugins/torrentremover/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/transmission/transmission.py b/app/modules/transmission/transmission.py index 6b42cde8..0f0193d9 100644 --- a/app/modules/transmission/transmission.py +++ b/app/modules/transmission/transmission.py @@ -26,7 +26,7 @@ class Transmission(metaclass=Singleton): "error", "errorString", "doneDate", "queuePosition", "activityDate", "trackers"] def __init__(self): - self._host, self._port = StringUtils.get_domain_address(settings.QB_HOST) + self._host, self._port = StringUtils.get_domain_address(settings.TR_HOST) self._username = settings.TR_USER self._password = settings.TR_PASSWORD if self._host and self._port and self._username and self._password: diff --git a/app/plugins/torrentremover/__init__.py b/app/plugins/torrentremover/__init__.py index d312f7da..27c9fee3 100644 --- a/app/plugins/torrentremover/__init__.py +++ b/app/plugins/torrentremover/__init__.py @@ -132,7 +132,7 @@ class TorrentRemover(_PluginBase): }) def get_state(self) -> bool: - return self._enabled and self._cron and self._downloaders + return self._enabled and True if self._cron and self._downloaders else False @staticmethod def get_command() -> List[Dict[str, Any]]: