Skip to content

Commit

Permalink
[build] Updated README and added debugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Oct 30, 2023
1 parent 10efcd5 commit a98cfb8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
11 changes: 7 additions & 4 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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,
Expand All @@ -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.")
Expand Down

0 comments on commit a98cfb8

Please sign in to comment.