Skip to content

Commit

Permalink
[patch] Hotfix backwards compatibility for temp profile configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Dec 4, 2024
1 parent 3b0aa5e commit 4ac7c01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,13 @@ def __init__(
self.main_quality_profiles = CONFIG.get(
f"{self._name}.EntrySearch.MainQualityProfile", fallback=None
)
if isinstance(self.main_quality_profile, str):
self.main_quality_profile = [self.main_quality_profile]
self.temp_quality_profiles = CONFIG.get(
f"{self._name}.EntrySearch.TempQualityProfile", fallback=None
)
if isinstance(self.temp_quality_profile, str):
self.temp_quality_profile = [self.temp_quality_profile]
if self.use_temp_for_missing:
self.temp_quality_profile_ids = self.parse_quality_profiles()

Expand Down

0 comments on commit 4ac7c01

Please sign in to comment.