Fix setting Kodi playlist path

This commit is contained in:
Croneter 2018-05-01 16:20:57 +02:00
parent e8aba6b77b
commit b448d1c06f

View file

@ -131,7 +131,7 @@ class Playlist_Object(PlaylistObjectBaseclase):
@kodi_path.setter @kodi_path.setter
def kodi_path(self, path): def kodi_path(self, path):
file = os.path.dirname(path) file = os.path.basename(path)
try: try:
self.kodi_filename, self.kodi_extension = file.split('.', 1) self.kodi_filename, self.kodi_extension = file.split('.', 1)
except ValueError: except ValueError: