From 8cb704540a77986e2d1bc9678299ef538a4d83c8 Mon Sep 17 00:00:00 2001 From: AyyKamp Date: Mon, 3 Aug 2020 23:16:42 +0200 Subject: [PATCH 1/2] Improved Collection matching --- collection_updater.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collection_updater.py b/collection_updater.py index 12bf2c8..70c6154 100644 --- a/collection_updater.py +++ b/collection_updater.py @@ -148,9 +148,9 @@ def main(): if lang == 'en': plex_col_title = plex_col_dict['title'] + ' Collection' - if tmdb_col_dict['name'] != plex_col_title: + if tmdb_col_dict['name'] != plex_col_title and tmdb_col_dict['name'] + ' Collection' != plex_col_title: print(' Invalid collection, does not match with the TMDB collection: %s' % tmdb_col_dict['name']) - + err_list.append('\r\n> %s' % plex_col_title) err_list.append(' Invalid collection, does not match with the TMDB collection: %s' % tmdb_col_dict['name']) continue From 44873208360e76283381a92e85aeea55e6ed2202 Mon Sep 17 00:00:00 2001 From: AyyKamp Date: Mon, 3 Aug 2020 23:18:46 +0200 Subject: [PATCH 2/2] Removed whitespace --- collection_updater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collection_updater.py b/collection_updater.py index 70c6154..d972e46 100644 --- a/collection_updater.py +++ b/collection_updater.py @@ -150,7 +150,7 @@ def main(): if tmdb_col_dict['name'] != plex_col_title and tmdb_col_dict['name'] + ' Collection' != plex_col_title: print(' Invalid collection, does not match with the TMDB collection: %s' % tmdb_col_dict['name']) - + err_list.append('\r\n> %s' % plex_col_title) err_list.append(' Invalid collection, does not match with the TMDB collection: %s' % tmdb_col_dict['name']) continue