Increase logging
This commit is contained in:
parent
26c588828e
commit
e8aba6b77b
1 changed files with 2 additions and 0 deletions
|
@ -135,12 +135,14 @@ class Playlist_Object(PlaylistObjectBaseclase):
|
||||||
try:
|
try:
|
||||||
self.kodi_filename, self.kodi_extension = file.split('.', 1)
|
self.kodi_filename, self.kodi_extension = file.split('.', 1)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
LOG.error('Trying to set invalid path: %s', path)
|
||||||
raise PlaylistError('Invalid path: %s' % path)
|
raise PlaylistError('Invalid path: %s' % path)
|
||||||
if path.startswith(v.PLAYLIST_PATH_VIDEO):
|
if path.startswith(v.PLAYLIST_PATH_VIDEO):
|
||||||
self.type = v.KODI_TYPE_VIDEO_PLAYLIST
|
self.type = v.KODI_TYPE_VIDEO_PLAYLIST
|
||||||
elif path.startswith(v.PLAYLIST_PATH_MUSIC):
|
elif path.startswith(v.PLAYLIST_PATH_MUSIC):
|
||||||
self.type = v.KODI_TYPE_AUDIO_PLAYLIST
|
self.type = v.KODI_TYPE_AUDIO_PLAYLIST
|
||||||
else:
|
else:
|
||||||
|
LOG.error('Playlist type not supported for %s', path)
|
||||||
raise PlaylistError('Playlist type not supported: %s' % path)
|
raise PlaylistError('Playlist type not supported: %s' % path)
|
||||||
if not self.plex_name:
|
if not self.plex_name:
|
||||||
self.plex_name = self.kodi_filename
|
self.plex_name = self.kodi_filename
|
||||||
|
|
Loading…
Add table
Reference in a new issue