diff --git a/qBitrr/arss.py b/qBitrr/arss.py index 314a0c90..8ec6f71f 100755 --- a/qBitrr/arss.py +++ b/qBitrr/arss.py @@ -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 ) @@ -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()