Fix UnboundLocalError

This commit is contained in:
Croneter 2018-07-05 13:10:42 +02:00
parent e28a7af7ed
commit 038e557e7b

View file

@ -481,7 +481,7 @@ class PlaylistEventhandler(events.FileSystemEventHandler):
if (not state.ENABLE_MUSIC and
event.src_path.startswith(v.PLAYLIST_PATH_MUSIC)):
return
path = event.dest_path if event.event_type == EVENT_TYPE_MOVED \
path = event.dest_path if event.event_type == events.EVENT_TYPE_MOVED \
else event.src_path
if not sync_kodi_playlist(path):
return