[179] fix 178 sorry

pull/1152/head
meisnate12 2 years ago
parent 2bf45597b3
commit 09a358024b

@ -1 +1 @@
1.17.3-develop178
1.17.3-develop179

@ -18,7 +18,8 @@ class Library(ABC):
self.Notifiarr = None
self.collections = []
self.metadatas = []
self.queue_names = []
self.queues = {}
self.queue_current = 0
self.metadata_files = []
self.overlay_files = []
self.overlay_names = []
@ -149,9 +150,11 @@ class Library(ABC):
if not operations_only and not collection_only:
for file_type, overlay_file, temp_vars, asset_directory in self.overlay_path:
try:
overlay_obj = OverlayFile(self.config, self, file_type, overlay_file, temp_vars, asset_directory)
overlay_obj = OverlayFile(self.config, self, file_type, overlay_file, temp_vars, asset_directory, self.queue_current)
self.overlay_files.append(overlay_obj)
self.queue_names.extend([q for q in overlay_obj.queues])
for qk, qv in overlay_obj.queues.items():
self.queues[self.queue_current] = qv
self.queue_current += 1
except Failed as e:
logger.error(e)
logger.info(f"Overlay File Failed To Load")

@ -191,7 +191,7 @@ class Mdblist:
response = self.config.get_json(url_base, headers=headers, params=params)
if (isinstance(response, dict) and "error" in response) or (isinstance(response, list) and response and "error" in response[0]):
err = response["error"] if isinstance(response, dict) else response[0]["error"]
if "empty" in err:
if err in ["empty", "empty or private list"]:
raise Failed(f"Mdblist Error: No Items Returned. Lists can take 24 hours to update so try again later.")
raise Failed(f"Mdblist Error: Invalid Response {response}")
results = []

Loading…
Cancel
Save