Fix IndexError for setting playlist path
This commit is contained in:
parent
892458981d
commit
1de2390cdd
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue