Skip to content

Commit

Permalink
Updated TautulliSyncHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick authored and Rick committed Jun 6, 2019
1 parent 682bc8b commit d56106e
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions TautulliSyncHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit d56106e

Please sign in to comment.