This commit is contained in:
meisnate12 2021-04-01 15:07:12 -04:00
parent 1f9e976eb3
commit 2bf33bc0cf
2 changed files with 5 additions and 5 deletions

View file

@ -502,7 +502,7 @@ class CollectionBuilder:
self.summaries[method_name] = item.description
self.methods.append((method_name[:-8], valid_list))
elif method_name in ["trakt_watchlist", "trakt_collection"]:
self.methods.append((method_name, config.Trakt.validate_trakt(method_name[6:], util.get_list(method_data), self.library.is_movie)))
self.methods.append((method_name, config.Trakt.validate_trakt(util.get_list(method_data), trakt_type=method_name[6:], is_movie=self.library.is_movie)))
elif method_name == "imdb_list":
new_list = []
for imdb_list in util.get_list(method_data, split=False):

View file

@ -453,10 +453,10 @@ class PlexAPI:
def add_advanced_edit(attr, options, key=None, show_library=False):
if key is None:
key = attr
if show_library and not self.is_show:
logger.error(f"Metadata Error: {attr} attribute only works for show libraries")
elif attr in methods:
if meta[methods[attr]]:
if attr in methods:
if show_library and not self.is_show:
logger.error(f"Metadata Error: {attr} attribute only works for show libraries")
elif meta[methods[attr]]:
method_data = str(meta[methods[attr]]).lower()
if method_data in options and getattr(item, key) != options[method_data]:
advance_edits[key] = options[method_data]