Fix ValueError

This commit is contained in:
Croneter 2018-05-01 16:12:25 +02:00
parent 4e16756829
commit 26c588828e

View file

@ -305,7 +305,10 @@ def full_sync():
create_kodi_playlist(api.plex_id())
except PL.PlaylistError:
LOG.info('Skipping playlist %s: %s', api.plex_id(), api.title())
old_plex_ids.remove(api.plex_id())
try:
old_plex_ids.remove(api.plex_id())
except ValueError:
pass
# Get rid of old Plex playlists that were deleted on the Plex side
for plex_id in old_plex_ids:
playlist = playlist_object_from_db(plex_id=api.plex_id())