Skip to content

Commit

Permalink
Value fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Aug 30, 2024
1 parent 343a4a6 commit 0ddf99a
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -4482,14 +4482,9 @@ def custom_format_unmet_check(self, torrent: qbittorrentapi.TorrentDictionary) -
return False
elif self.type == "radarr":
self.logger.debug("custom_format_unmet_check: [hash:%s]", torrent.hash)
# entry = dict(
# filter(
# lambda x: x.get("downloadId", None) == torrent.hash.upper(), queue["records"]
# )
# )
entry = next(
(
record
record["movieId"]
for record in queue["records"]
if record["downloadId"] == torrent.hash.upper()
),
Expand All @@ -4498,11 +4493,6 @@ def custom_format_unmet_check(self, torrent: qbittorrentapi.TorrentDictionary) -
self.logger.debug("custom_format_unmet_check: [entry:%s]", entry)
if not entry:
return False
# else:
# entry = entry["movieId"]
# customFormat = list(
# filter(lambda x: x["downloadId"] == torrent.hash.upper(), queue["records"])
# )[0]["customFormatScore"]
customFormat = next(
(
record["customFormatScore"]
Expand Down

0 comments on commit 0ddf99a

Please sign in to comment.