From f6d7462ae47ec062f18ecaf5e3d2afb56e3e85e0 Mon Sep 17 00:00:00 2001 From: Yozora XCII Date: Fri, 22 Mar 2024 20:40:32 +0000 Subject: [PATCH] Fixes #1939 --- modules/plex.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/modules/plex.py b/modules/plex.py index 1e341155..6685ff3c 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -1526,12 +1526,15 @@ class Plex(Library): if year_titles.count(f"{item.title} ({item.year})") > 1: match_dict["title"] = item.title match_dict["year"] = item.year - if item.editionTitle: - map_key = f"{item.title} ({item.year}) [{item.editionTitle}]" - match_dict["edition"] = item.editionTitle - else: - map_key = f"{item.title} ({item.year})" - match_dict["blank_edition"] = True + map_key = f"{item.title} ({item.year})" + match_dict["blank_edition"] = True + try: + if item.editionTitle: + map_key = f"{item.title} ({item.year}) [{item.editionTitle}]" + match_dict["edition"] = item.editionTitle + match_dict["blank_edition"] = False + except: + dont_care = True else: map_key = f"{item.title} ({item.year})" match_dict["title"] = item.title