Skip to content

Commit

Permalink
Moved some logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Aug 30, 2024
1 parent d27917e commit c620f84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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:
Expand Down

0 comments on commit c620f84

Please sign in to comment.