Skip to content

Commit ff3a54c

Browse files
committed
Fixed reset of tracker between instances
1 parent a41d769 commit ff3a54c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/jobs/remove_metadata_missing.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ class RemoveMetadataMissing(RemovalJob):
66
blocklist = True
77

88
async def _find_affected_items(self):
9-
# conditions = [("queued", "qBittorrent is downloading metadata")]
10-
conditions = ["paused"]
9+
conditions = [("queued", "qBittorrent is downloading metadata")]
1110
return self.queue_manager.filter_queue(self.queue, conditions)

src/settings/_instances.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ class ArrInstance:
138138

139139
version: str = None
140140
name: str = None
141-
tracker = Tracker()
142141

143142
def __init__(self, settings, arr_type: str, base_url: str, api_key: str):
144143
if not base_url:
@@ -152,6 +151,7 @@ def __init__(self, settings, arr_type: str, base_url: str, api_key: str):
152151
raise ValueError(error)
153152

154153
self.settings = settings
154+
self.tracker = Tracker()
155155
self.arr_type = arr_type
156156
self.base_url = base_url.rstrip("/")
157157
self.api_key = api_key
@@ -163,8 +163,6 @@ def __init__(self, settings, arr_type: str, base_url: str, api_key: str):
163163
self.detail_item_ids_key = self.detail_item_key + "Ids"
164164
self.detail_item_search_command = getattr(DetailItemSearchCommand, arr_type)
165165

166-
self.detail_item_search_command = getattr(DetailItemSearchCommand, arr_type)
167-
168166
async def _check_ui_language(self):
169167
"""Check if the UI language is set to English."""
170168
endpoint = self.api_url + "/config/ui"

0 commit comments

Comments
 (0)