mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[86] more small fixes
This commit is contained in:
parent
b8d3f1dc90
commit
dd1e58ed64
3 changed files with 10 additions and 9 deletions
2
VERSION
2
VERSION
|
@ -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"])
|
||||
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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue