From 038e557e7b2ff3db00490f668d90f0362bb01b42 Mon Sep 17 00:00:00 2001 From: Croneter Date: Thu, 5 Jul 2018 13:10:42 +0200 Subject: [PATCH] Fix UnboundLocalError --- 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 ff8a3a11..c8dcb155 100644 --- a/resources/lib/playlists.py +++ b/resources/lib/playlists.py @@ -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