diff --git a/VERSION b/VERSION index 1afd35da..cc4e079a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.19.0-develop84 +1.19.0-develop85 diff --git a/modules/builder.py b/modules/builder.py index e43dad46..7baffeb1 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -2854,10 +2854,11 @@ 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 self.library.is_movie: - path = os.path.dirname(str(item.locations[0])) - elif self.library.is_show: - path = str(item.locations[0]) + 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: diff --git a/modules/config.py b/modules/config.py index 46ce11b4..5573a800 100644 --- a/modules/config.py +++ b/modules/config.py @@ -820,15 +820,18 @@ class ConfigFile: params[err_attr] = None for mass_key in operations.meta_operations: - if params[mass_key] == "omdb" and self.OMDb is None: + if not params[mass_key]: + continue + source = params[mass_key]["source"] if isinstance(params[mass_key], dict) else params[mass_key] + if source == "omdb" and self.OMDb is None: error_check(mass_key, "OMDb") - if params[mass_key] and params[mass_key].startswith("mdb") and not self.Mdblist.has_key: + if source and source.startswith("mdb") and not self.Mdblist.has_key: error_check(mass_key, "MdbList") - if params[mass_key] and params[mass_key].startswith("anidb") and not self.AniDB.is_authorized: + if source and source.startswith("anidb") and not self.AniDB.is_authorized: error_check(mass_key, "AniDB") - if params[mass_key] and params[mass_key].startswith("mal") and self.MyAnimeList is None: + if source and source.startswith("mal") and self.MyAnimeList is None: error_check(mass_key, "MyAnimeList") - if params[mass_key] and params[mass_key].startswith("trakt") and self.Trakt is None: + if source and source.startswith("trakt") and self.Trakt is None: error_check(mass_key, "Trakt") lib_vars = {}