From 85e0909105525046511d4312e26944f5833e4186 Mon Sep 17 00:00:00 2001 From: croneter Date: Thu, 1 Aug 2019 12:45:42 +0200 Subject: [PATCH] Fix potential playlist sync issues with dot in playlist name --- resources/lib/playlists/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/playlists/common.py b/resources/lib/playlists/common.py index ce173475..76eceb89 100644 --- a/resources/lib/playlists/common.py +++ b/resources/lib/playlists/common.py @@ -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)