From c620f8428d13e04bd4b61ce8f11bb939f367f011 Mon Sep 17 00:00:00 2001 From: Feramance Date: Fri, 30 Aug 2024 15:52:35 +0200 Subject: [PATCH] Moved some logic --- qBitrr/arss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qBitrr/arss.py b/qBitrr/arss.py index 5cabf0ec..31e38740 100755 --- a/qBitrr/arss.py +++ b/qBitrr/arss.py @@ -95,8 +95,6 @@ def __init__( self.category = CONFIG.get(f"{name}.Category", fallback=self._name) self.manager = manager self._LOG_LEVEL = self.manager.qbit_manager.logger.level - categories = self.manager.qbit_manager.client.torrent_categories.categories - self.logger.trace("Categories: %s", categories) self.logger = logging.getLogger(f"qBitrr.{self._name}") if ENABLE_LOGS: LOGS_FOLDER = HOME_PATH.joinpath("logs") @@ -109,6 +107,8 @@ def __init__( fh = logging.FileHandler(logfile) self.logger.addHandler(fh) run_logs(self.logger) + categories = self.manager.qbit_manager.client.torrent_categories.categories + self.logger.trace("Categories: %s", categories) self.completed_folder = pathlib.Path(COMPLETED_DOWNLOAD_FOLDER).joinpath(self.category) if not self.completed_folder.exists() and not SEARCH_ONLY: try: