pull/160/head
meisnate12 4 years ago
parent 1f9e976eb3
commit 2bf33bc0cf

@ -502,7 +502,7 @@ class CollectionBuilder:
self.summaries[method_name] = item.description self.summaries[method_name] = item.description
self.methods.append((method_name[:-8], valid_list)) self.methods.append((method_name[:-8], valid_list))
elif method_name in ["trakt_watchlist", "trakt_collection"]: 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": elif method_name == "imdb_list":
new_list = [] new_list = []
for imdb_list in util.get_list(method_data, split=False): for imdb_list in util.get_list(method_data, split=False):

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

Loading…
Cancel
Save