[85] small fix

This commit is contained in:
meisnate12 2023-08-10 09:30:25 -04:00
parent 406b13e2d8
commit b8d3f1dc90
3 changed files with 14 additions and 10 deletions

View file

@ -1 +1 @@
1.19.0-develop84
1.19.0-develop85

View file

@ -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:

View file

@ -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 = {}