Fix UnboundLocalError for playlists
This commit is contained in:
parent
2389f61b91
commit
9c6fa31fda
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ def full_sync():
|
||||||
pass
|
pass
|
||||||
# Get rid of old Plex playlists that were deleted on the Plex side
|
# Get rid of old Plex playlists that were deleted on the Plex side
|
||||||
for plex_id in old_plex_ids:
|
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:
|
if playlist:
|
||||||
LOG.debug('Removing outdated Plex playlist %s from %s',
|
LOG.debug('Removing outdated Plex playlist %s from %s',
|
||||||
playlist.plex_name, playlist.kodi_path)
|
playlist.plex_name, playlist.kodi_path)
|
||||||
|
|
Loading…
Reference in a new issue