Skip to content

Commit

Permalink
Moved logic to fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed May 29, 2024
1 parent acc9462 commit 41cb3f3
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,6 @@ def __init__(
self.force_minimum_custom_format = CONFIG.get(
f"{name}.EntrySearch.ForceMinimumCustomFormat", fallback=False
)
self.use_temp_for_missing = CONFIG.get(
f"{name}.EntrySearch.UseTempForMissing", fallback=False
)
if self.use_temp_for_missing:
(
self.main_quality_profile_id,
self.temp_quality_profile_id,
) = self.parse_quality_profiles()

self.ignore_torrents_younger_than = CONFIG.get(
f"{name}.Torrent.IgnoreTorrentsYoungerThan", fallback=600
Expand Down Expand Up @@ -309,6 +301,15 @@ def __init__(
except Exception:
self.logger.debug("Failed to get version")

self.use_temp_for_missing = CONFIG.get(
f"{name}.EntrySearch.UseTempForMissing", fallback=False
)
if self.use_temp_for_missing:
(
self.main_quality_profile_id,
self.temp_quality_profile_id,
) = self.parse_quality_profiles()

if self.rss_sync_timer > 0:
self.rss_sync_timer_last_checked = datetime(1970, 1, 1)
else:
Expand Down

0 comments on commit 41cb3f3

Please sign in to comment.