Fix potential playlist sync issues with dot in playlist name
This commit is contained in:
parent
92a7fa7c7a
commit
85e0909105
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ class Playlist(object):
|
||||||
raise RuntimeError('Path not in unicode: %s' % path)
|
raise RuntimeError('Path not in unicode: %s' % path)
|
||||||
f = path_ops.path.basename(path)
|
f = path_ops.path.basename(path)
|
||||||
try:
|
try:
|
||||||
self.kodi_filename, self.kodi_extension = f.split('.', 1)
|
self.kodi_filename, self.kodi_extension = f.rsplit('.', 1)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
LOG.error('Trying to set invalid path: %s', path)
|
LOG.error('Trying to set invalid path: %s', path)
|
||||||
raise PlaylistError('Invalid path: %s' % path)
|
raise PlaylistError('Invalid path: %s' % path)
|
||||||
|
|
Loading…
Reference in a new issue