Skip to content

Commit

Permalink
[release] Radarr upgrade search fix and dep bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Nov 15, 2023
1 parent e3d99ef commit f9e278e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -1293,8 +1293,9 @@ def db_get_files_movies(
if not self.search_missing:
yield None, False, False
if self.type == "radarr":
condition = self.model_file.Year.is_null(False)
if self.search_by_year:
condition = self.model_file.Year == self.search_current_year
condition &= self.model_file.Year == self.search_current_year
if not self.do_upgrade_search:
if self.quality_unmet_search:
condition &= self.model_file.QualityMet == False
Expand All @@ -1304,11 +1305,10 @@ def db_get_files_movies(
else:
if not self.do_upgrade_search:
if self.quality_unmet_search:
condition = self.model_file.QualityMet == False
condition &= self.model_file.QualityMet == False
else:
condition = self.model_file.MovieFileId == 0
condition &= self.model_file.MovieFileId == 0
condition &= self.model_file.Searched == False
condition = self.model_file.Year.is_null(False)
for entry in (
self.model_file.select()
.where(condition)
Expand Down

0 comments on commit f9e278e

Please sign in to comment.