Skip to content

Commit

Permalink
[minor] New feature: Switch quality profile for missing items until f…
Browse files Browse the repository at this point in the history
…ound
  • Loading branch information
Feramance committed May 29, 2024
1 parent 2543508 commit 14ce35c
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -2162,15 +2162,19 @@ def db_update_single_series(
):
data: JsonObject = {"qualityProfileId": self.main_quality_profile_id}
self.logger.debug(
"Updating quality profile to %s", self.main_quality_profile
"Updating quality profile for %s to %s",
db_entry["title"],
self.temp_quality_profile,
)
elif (
not searched
and db_entry["qualityProfileId"] == self.main_quality_profile_id
):
data: JsonObject = {"qualityProfileId": self.temp_quality_profile_id}
self.logger.debug(
"Updating quality profile to %s", self.temp_quality_profile
"Updating quality profile for %s to %s",
db_entry["title"],
self.temp_quality_profile,
)
completed = True
while completed:
Expand Down Expand Up @@ -2356,15 +2360,19 @@ def db_update_single_series(
):
db_entry["qualityProfileId"] = self.main_quality_profile_id
self.logger.debug(
"Updating quality profile to %s", self.main_quality_profile
"Updating quality profile for %s to %s",
db_entry["title"],
self.temp_quality_profile,
)
elif (
not searched
and db_entry["qualityProfileId"] == self.main_quality_profile_id
):
db_entry["qualityProfileId"] = self.temp_quality_profile_id
self.logger.debug(
"Updating quality profile to %s", self.temp_quality_profile
"Updating quality profile for %s to %s",
db_entry["title"],
self.temp_quality_profile,
)
completed = True
while completed:
Expand Down Expand Up @@ -2486,15 +2494,19 @@ def db_update_single_series(
if searched and db_entry["qualityProfileId"] == self.temp_quality_profile_id:
db_entry["qualityProfileId"] = self.main_quality_profile_id
self.logger.debug(
"Updating quality profile to %s", self.main_quality_profile
"Updating quality profile for %s to %s",
db_entry["title"],
self.temp_quality_profile,
)
elif (
not searched
and db_entry["qualityProfileId"] == self.main_quality_profile_id
):
db_entry["qualityProfileId"] = self.temp_quality_profile_id
self.logger.debug(
"Updating quality profile to %s", self.temp_quality_profile
"Updating quality profile for %s to %s",
db_entry["title"],
self.temp_quality_profile,
)
completed = True
while completed:
Expand Down

0 comments on commit 14ce35c

Please sign in to comment.