Skip to content

Commit

Permalink
Added logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Aug 30, 2024
1 parent 19ee712 commit 1a42639
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -4481,6 +4481,7 @@ def custom_format_unmet_check(self, torrent: qbittorrentapi.TorrentDictionary) -
else:
return False
elif self.type == "radarr":
self.logger.debug("custom_format_unmet_check: [queue:%s]", queue["records"])
entry = list(
filter(lambda x: x["downloadId"] == torrent.hash, queue["records"])
)
Expand All @@ -4492,11 +4493,11 @@ def custom_format_unmet_check(self, torrent: qbittorrentapi.TorrentDictionary) -
# ),
# None,
# )
self.logger.debug("custom_format_unmet_check: [entry:%s]", entry)
if not len(entry) > 0:
return False
else:
entry = entry[0]["movieId"]
self.logger.debug("custom_format_unmet_check: [entry:%s]", entry)
customFormat = list(
filter(lambda x: x["downloadId"] == torrent.hash, queue["records"])
)[0]["customFormatScore"]
Expand Down

0 comments on commit 1a42639

Please sign in to comment.