From 1de2390cdda2b52c5fbc92b65d0e7e8b563ae927 Mon Sep 17 00:00:00 2001 From: Croneter Date: Tue, 1 May 2018 15:23:39 +0200 Subject: [PATCH] Fix IndexError for setting playlist path --- resources/lib/playlist_func.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/playlist_func.py b/resources/lib/playlist_func.py index 90ce4168..db3542a9 100644 --- a/resources/lib/playlist_func.py +++ b/resources/lib/playlist_func.py @@ -133,7 +133,7 @@ class Playlist_Object(PlaylistObjectBaseclase): def kodi_path(self, path): file = os.path.dirname(path) try: - self.kodi_filename, self.kodi_extension = file.split('.', 1)[1] + self.kodi_filename, self.kodi_extension = file.split('.', 1) except ValueError: raise PlaylistError('Invalid path: %s' % path) if path.startswith(v.PLAYLIST_PATH_VIDEO):