Skip to content

Commit

Permalink
[patch] Minor changes to better handle temp profile config edge cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Dec 5, 2024
1 parent 6a8c622 commit b4f5831
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,6 @@ def __init__(
except Exception:
self.logger.debug("Failed to get version")

self.use_temp_for_missing = CONFIG.get(
f"{name}.EntrySearch.UseTempForMissing", fallback=False
)
self.main_quality_profiles = CONFIG.get(
f"{self._name}.EntrySearch.MainQualityProfile", fallback=None
)
Expand All @@ -363,6 +360,11 @@ def __init__(
)
if not isinstance(self.temp_quality_profiles, list):
self.temp_quality_profiles = [self.temp_quality_profiles]

self.use_temp_for_missing = CONFIG.get(
f"{name}.EntrySearch.UseTempForMissing", fallback=False
) and self.main_quality_profiles and self.temp_quality_profiles

if self.use_temp_for_missing:
self.temp_quality_profile_ids = self.parse_quality_profiles()

Expand Down

0 comments on commit b4f5831

Please sign in to comment.