[86] more small fixes

pull/1551/head
meisnate12 1 year ago
parent b8d3f1dc90
commit dd1e58ed64

@ -1 +1 @@
1.19.0-develop85 1.19.0-develop86

@ -2854,13 +2854,14 @@ class CollectionBuilder:
self.library.query_data(item.editEditionTitle, 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']}") logger.info(f"{item.title[:25]:<25} | Edition | {self.item_details['item_edition']}")
path = None path = None
if 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 self.library.is_movie: if item.locations:
path = os.path.dirname(str(item.locations[0])) if self.library.is_movie:
elif self.library.is_show: path = os.path.dirname(str(item.locations[0]))
path = str(item.locations[0]) elif self.library.is_show:
if not path: path = str(item.locations[0])
logger.error(f"Plex Error: No location found for {item.title}: {item.locations}") 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: 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.replace(self.library.Radarr.plex_path, self.library.Radarr.radarr_path)
path = path[:-1] if path.endswith(('/', '\\')) else path path = path[:-1] if path.endswith(('/', '\\')) else path

@ -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 \ 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.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 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 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: if self.asset_directory:

Loading…
Cancel
Save