From e0eec353876d160c1d745b3e42fa910aed78f4f8 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Mon, 7 Feb 2022 17:47:04 -0500 Subject: [PATCH] checks for item without year it it fails to find with year --- VERSION | 2 +- modules/meta.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 64566644..39abc549 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.15.1-develop52 +1.15.1-develop53 diff --git a/modules/meta.py b/modules/meta.py index 491f961d..a76e5454 100644 --- a/modules/meta.py +++ b/modules/meta.py @@ -528,15 +528,14 @@ class MetadataFile(DataFile): item = self.library.search_item(title, year=year) - if item is None: - item = self.library.search_item(f"{title} (SUB)", year=year) - if item is None and "alt_title" in methods: if meta[methods["alt_title"]] is None: logger.error("Metadata Error: alt_title attribute is blank") else: alt_title = meta["alt_title"] item = self.library.search_item(alt_title, year=year) + if item is None: + item = self.library.search_item(alt_title) if item is None: logger.error(f"Plex Error: Item {mapping_name} not found")