From a98cfb8e408bbbd9f2e44f19f0176d101e10d45a Mon Sep 17 00:00:00 2001 From: Feramance Date: Mon, 30 Oct 2023 11:25:43 +0100 Subject: [PATCH] [build] Updated README and added debugs --- README.md | 2 +- qBitrr/arss.py | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a76cfb4e..53252493 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ A simple script to monitor [qBit](https://github.com/qbittorrent/qBittorrent) an Some things to know before using it. -- qBittorrent 4.5.x +- qBittorrent >= 4.5.x - [Sonarr](https://github.com/Sonarr/Sonarr) and [Radarr](https://github.com/Radarr/Radarr) both setup to add tags to all downloads. - qBit set to create sub-folders for tag. diff --git a/qBitrr/arss.py b/qBitrr/arss.py index b2cacc91..5c8e078d 100755 --- a/qBitrr/arss.py +++ b/qBitrr/arss.py @@ -1967,10 +1967,7 @@ def db_update_single_series( searched = True Title = seriesMetadata.get("title") Monitored = db_entry.Monitored - self.logger.trace( - "Updating database entry | %s", - Title, - ) + self.logger.debug("Updating database entry | %s | %s", Title, searched) to_update = { self.series_file_model.Monitored: Monitored, self.series_file_model.Title: Title, @@ -3741,6 +3738,7 @@ def run_search_loop(self) -> NoReturn: if self.loop_completed: years_index = 0 timer = datetime.now() + self.logger.debug("Loop completed: %s", self.loop_completed) if self.search_by_year: if years_index == 0: years, years_count = self.get_year_search() @@ -3771,7 +3769,10 @@ def run_search_loop(self) -> NoReturn: self.refresh_download_queue() self.force_grab() raise RestartLoopException + else: + self.logger.debug("Timer not elapsed") for entry, todays, limit_bypass, series_search in self.db_get_files(): + self.logger.debug("Entry: %s", entry.Title) while ( self.maybe_do_search( entry, @@ -3780,7 +3781,9 @@ def run_search_loop(self) -> NoReturn: series_search=series_search, ) ) is False: + self.logger.debug("maybe_do_search running") time.sleep(30) + self.logger.debug("maybe_do_search completed/skipped") except RestartLoopException: self.loop_completed = True self.logger.info("Loop timer elapsed, restarting it.")