Skip to content

Commit

Permalink
Fixed CF check on entry without file
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Jan 12, 2024
1 parent 8873da6 commit b6e0bdb
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -2012,13 +2012,13 @@ def db_update_single_series(
)["minFormatScore"]
else:
minCustomFormat = episodeData.MinCustomFormatScore
if (
episode["episodeFile"]["id"] != episodeData.EpisodeFileId
and episode["hasFile"]
):
customFormat = self.client.get_episode_file(
episode["episodeFile"]["id"]
)["customFormatScore"]
if episode["hasFile"]:
if episode["episodeFile"]["id"] != episodeData.EpisodeFileId:
customFormat = self.client.get_episode_file(
episode["episodeFile"]["id"]
)["customFormatScore"]
else:
customFormat = 0
else:
customFormat = 0
else:
Expand Down Expand Up @@ -2280,13 +2280,13 @@ def db_update_single_series(
)["minFormatScore"]
else:
minCustomFormat = movieData.MinCustomFormatScore
if (
db_entry["movieFile"]["id"] != movieData.MovieFileId
and db_entry["hasFile"]
):
customFormat = self.client.get_movie_file(
db_entry["movieFile"]["id"]
)["customFormatScore"]
if db_entry["hasFile"]:
if db_entry["movieFile"]["id"] != movieData.MovieFileId:
customFormat = self.client.get_movie_file(
db_entry["movieFile"]["id"]
)["customFormatScore"]
else:
customFormat = 0
else:
customFormat = 0
else:
Expand Down

0 comments on commit b6e0bdb

Please sign in to comment.