Skip to content

Commit

Permalink
CFUnmet condition update
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Jan 12, 2024
1 parent e3f737b commit 10b5cfc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -3885,7 +3885,10 @@ def custom_format_unmet_check(self, torrent: qbittorrentapi.TorrentDictionary) -
)
episode = self.model_file.get_or_none(self.model_file.EntryId == entry)
if episode.EpisodeFileId != 0:
cfunmet = customFormat < episode.CustomFormatScore
cfunmet = (
customFormat < episode.CustomFormatScore
and customFormat < episode.MinCustomFormatScore
)
else:
cfunmet = customFormat < episode.MinCustomFormatScore
if cfunmet:
Expand Down Expand Up @@ -3942,7 +3945,10 @@ def custom_format_unmet_check(self, torrent: qbittorrentapi.TorrentDictionary) -
self.logger.debug("custom_format_unmet_check: [customFormat:%s]", customFormat)
movie = self.model_file.get_or_none(self.model_file.EntryId == entry)
if movie.MovieFileId != 0:
cfunmet = customFormat < movie.CustomFormatScore
cfunmet = (
customFormat < movie.CustomFormatScore
and customFormat < movie.MinCustomFormatScore
)
else:
cfunmet = customFormat < movie.MinCustomFormatScore
if cfunmet:
Expand Down

0 comments on commit 10b5cfc

Please sign in to comment.