From 10b5cfc3341540df642d9eef04731b598f08f0c4 Mon Sep 17 00:00:00 2001 From: Feramance Date: Fri, 12 Jan 2024 12:17:30 +0100 Subject: [PATCH] CFUnmet condition update --- qBitrr/arss.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/qBitrr/arss.py b/qBitrr/arss.py index 56ee87bf..fc2b8578 100755 --- a/qBitrr/arss.py +++ b/qBitrr/arss.py @@ -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: @@ -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: