From 9c6fa31fda623b750e4808c40f49b009fb6768bf Mon Sep 17 00:00:00 2001 From: Croneter Date: Wed, 20 Jun 2018 12:31:18 +0200 Subject: [PATCH] Fix UnboundLocalError for playlists --- resources/lib/playlists.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/playlists.py b/resources/lib/playlists.py index 587b14ee..ea7880c4 100644 --- a/resources/lib/playlists.py +++ b/resources/lib/playlists.py @@ -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)