From e8aba6b77b733d8663031da1a11d9cee1609adba Mon Sep 17 00:00:00 2001 From: Croneter Date: Tue, 1 May 2018 16:18:06 +0200 Subject: [PATCH] Increase logging --- resources/lib/playlist_func.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/lib/playlist_func.py b/resources/lib/playlist_func.py index 253f13bb..8fa46aec 100644 --- a/resources/lib/playlist_func.py +++ b/resources/lib/playlist_func.py @@ -135,12 +135,14 @@ class Playlist_Object(PlaylistObjectBaseclase): try: self.kodi_filename, self.kodi_extension = file.split('.', 1) except ValueError: + LOG.error('Trying to set invalid path: %s', path) raise PlaylistError('Invalid path: %s' % path) if path.startswith(v.PLAYLIST_PATH_VIDEO): self.type = v.KODI_TYPE_VIDEO_PLAYLIST elif path.startswith(v.PLAYLIST_PATH_MUSIC): self.type = v.KODI_TYPE_AUDIO_PLAYLIST else: + LOG.error('Playlist type not supported for %s', path) raise PlaylistError('Playlist type not supported: %s' % path) if not self.plex_name: self.plex_name = self.kodi_filename