Fix potential playlist sync issues with dot in playlist name

This commit is contained in:
croneter 2019-08-01 12:45:42 +02:00
parent 92a7fa7c7a
commit 85e0909105

View file

@ -105,7 +105,7 @@ class Playlist(object):
raise RuntimeError('Path not in unicode: %s' % path)
f = path_ops.path.basename(path)
try:
self.kodi_filename, self.kodi_extension = f.split('.', 1)
self.kodi_filename, self.kodi_extension = f.rsplit('.', 1)
except ValueError:
LOG.error('Trying to set invalid path: %s', path)
raise PlaylistError('Invalid path: %s' % path)