From d1883fe21ecec2525446e35d5f7c6a390c722da8 Mon Sep 17 00:00:00 2001 From: Chaz Larson Date: Sat, 22 Jul 2023 05:43:17 +0000 Subject: [PATCH] Revert "Only movies and shows have locations" This reverts commit 2447637b8e1ae826ae44757efc0cea30e4385609. --- modules/builder.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/builder.py b/modules/builder.py index 183d664a..dd080af3 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -2853,12 +2853,7 @@ class CollectionBuilder: if "item_edition" in self.item_details and item.editionTitle != self.item_details["item_edition"]: self.library.query_data(item.editEditionTitle, self.item_details["item_edition"]) logger.info(f"{item.title[:25]:<25} | Edition | {self.item_details['item_edition']}") - path = None - if self.library.is_movie: - path = os.path.dirname(str(item.locations[0])) - elif self.library.is_show: - path = str(item.locations[0]) - + path = os.path.dirname(str(item.locations[0])) if self.library.is_movie else str(item.locations[0]) if self.library.Radarr and item.ratingKey in self.library.movie_rating_key_map: path = path.replace(self.library.Radarr.plex_path, self.library.Radarr.radarr_path) path = path[:-1] if path.endswith(('/', '\\')) else path