From d56106e3aa0178f0ad217990b2078ef77cd78f78 Mon Sep 17 00:00:00 2001 From: Rick Date: Fri, 7 Jun 2019 00:06:25 +0200 Subject: [PATCH] Updated TautulliSyncHelper --- TautulliSyncHelper.py | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/TautulliSyncHelper.py b/TautulliSyncHelper.py index 33fc333..d35d9f4 100644 --- a/TautulliSyncHelper.py +++ b/TautulliSyncHelper.py @@ -120,11 +120,22 @@ def start(): else: plexmodule.plex_settings = plex_settings plex_anime_series = plexmodule.get_anime_shows_filter(show_title) - plex_series_watched = plexmodule.get_watched_shows(plex_anime_series) - anilist.match_to_plex( - anilist_series, - plex_anime_series, - plex_series_watched) + + if(plex_anime_series is None): + logger.error('Found no Plex shows for processing') + plex_series_watched = None + else: + plex_series_watched = plexmodule.get_watched_shows( + plex_anime_series) + + if(plex_series_watched is None): + logger.error( + 'Found no watched shows on Plex for processing') + else: + anilist.match_to_plex( + anilist_series, + plex_anime_series, + plex_series_watched) logger.info('Plex to AniList sync finished')