Fix UnboundLocalError for playlists

This commit is contained in:
Croneter 2018-06-20 12:31:18 +02:00
parent 2389f61b91
commit 9c6fa31fda

View file

@ -345,7 +345,7 @@ def full_sync():
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())
playlist = playlist_object_from_db(plex_id=plex_id)
if playlist:
LOG.debug('Removing outdated Plex playlist %s from %s',
playlist.plex_name, playlist.kodi_path)