From 2bf33bc0cfec858d41162d6711b237fce8b0009c Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Thu, 1 Apr 2021 15:07:12 -0400 Subject: [PATCH] fix for #157 --- modules/builder.py | 2 +- modules/plex.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/builder.py b/modules/builder.py index 5f2d46be..bc04c0df 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -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): diff --git a/modules/plex.py b/modules/plex.py index 16159142..815b42b2 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -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]