diff --git a/VERSION b/VERSION index cc4e079a..5d2a46bc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.19.0-develop85 +1.19.0-develop86 diff --git a/modules/builder.py b/modules/builder.py index 7baffeb1..d1372029 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -2854,13 +2854,14 @@ class CollectionBuilder: 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 item.locations: - if self.library.is_movie: - path = os.path.dirname(str(item.locations[0])) - elif self.library.is_show: - path = str(item.locations[0]) - if not path: - logger.error(f"Plex Error: No location found for {item.title}: {item.locations}") + if "item_radarr_tag" in self.item_details or self.radarr_details["add_existing"] or "item_sonarr_tag" in self.item_details or self.sonarr_details["add_existing"]: + if item.locations: + if self.library.is_movie: + path = os.path.dirname(str(item.locations[0])) + elif self.library.is_show: + path = str(item.locations[0]) + if not path: + logger.error(f"Plex Error: No location found for {item.title}: {item.locations}") if path and 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 diff --git a/modules/library.py b/modules/library.py index f5784220..d21f5430 100644 --- a/modules/library.py +++ b/modules/library.py @@ -126,7 +126,7 @@ class Library(ABC): self.library_operation = True if self.items_library_operation or self.delete_collections or self.mass_collection_mode \ or self.radarr_remove_by_tag or self.sonarr_remove_by_tag or self.show_unmanaged or self.show_unconfigured \ or self.metadata_backup or self.update_blank_track_titles else False - self.meta_operations = [i for i in [getattr(self, o) for o in operations.meta_operations] if i] + self.meta_operations = [i["source"] if isinstance(i, dict) else i for i in [getattr(self, o) for o in operations.meta_operations] if i] self.label_operations = True if self.assets_for_all or self.mass_imdb_parental_labels or self.mass_episode_imdb_parental_labels else False if self.asset_directory: