mirror of
https://github.com/ManiMatter/decluttarr.git
synced 2026-04-20 15:55:40 +02:00
Fixed reset of tracker between instances
This commit is contained in:
@@ -138,7 +138,6 @@ class ArrInstance:
|
||||
|
||||
version: str = None
|
||||
name: str = None
|
||||
tracker = Tracker()
|
||||
|
||||
def __init__(self, settings, arr_type: str, base_url: str, api_key: str):
|
||||
if not base_url:
|
||||
@@ -152,6 +151,7 @@ class ArrInstance:
|
||||
raise ValueError(error)
|
||||
|
||||
self.settings = settings
|
||||
self.tracker = Tracker()
|
||||
self.arr_type = arr_type
|
||||
self.base_url = base_url.rstrip("/")
|
||||
self.api_key = api_key
|
||||
@@ -163,8 +163,6 @@ class ArrInstance:
|
||||
self.detail_item_ids_key = self.detail_item_key + "Ids"
|
||||
self.detail_item_search_command = getattr(DetailItemSearchCommand, arr_type)
|
||||
|
||||
self.detail_item_search_command = getattr(DetailItemSearchCommand, arr_type)
|
||||
|
||||
async def _check_ui_language(self):
|
||||
"""Check if the UI language is set to English."""
|
||||
endpoint = self.api_url + "/config/ui"
|
||||
|
||||
Reference in New Issue
Block a user