Fix IndexError for setting playlist path

This commit is contained in:
Croneter 2018-05-01 15:23:39 +02:00
parent 892458981d
commit 1de2390cdd

View file

@ -133,7 +133,7 @@ class Playlist_Object(PlaylistObjectBaseclase):
def kodi_path(self, path): def kodi_path(self, path):
file = os.path.dirname(path) file = os.path.dirname(path)
try: try:
self.kodi_filename, self.kodi_extension = file.split('.', 1)[1] self.kodi_filename, self.kodi_extension = file.split('.', 1)
except ValueError: except ValueError:
raise PlaylistError('Invalid path: %s' % path) raise PlaylistError('Invalid path: %s' % path)
if path.startswith(v.PLAYLIST_PATH_VIDEO): if path.startswith(v.PLAYLIST_PATH_VIDEO):