Merge pull request #947 from croneter/fix-dot
Fix potential playlist sync issues if there is a dot in the playlist name
This commit is contained in:
commit
b17e5c124a
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