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:
croneter 2019-08-02 10:49:39 +02:00 committed by GitHub
commit b17e5c124a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)