Improve logging

This commit is contained in:
croneter 2018-07-12 09:24:51 +02:00
parent 1f5ce87bdc
commit 109fafcf4c

View file

@ -172,18 +172,18 @@ def _full_sync():
continue continue
try: try:
if not playlist: if not playlist:
LOG.debug('New Kodi playlist detected: %s', playlist) LOG.debug('New Kodi playlist detected: %s', path)
playlist = Playlist() playlist = Playlist()
playlist.kodi_path = path playlist.kodi_path = path
playlist.kodi_hash = kodi_hash playlist.kodi_hash = kodi_hash
plex_pl.create(playlist) plex_pl.create(playlist)
else: else:
LOG.debug('Changed Kodi playlist detected: %s', playlist) LOG.debug('Changed Kodi playlist detected: %s', path)
plex_pl.delete(playlist) plex_pl.delete(playlist)
playlist.kodi_hash = kodi_hash playlist.kodi_hash = kodi_hash
plex_pl.create(playlist) plex_pl.create(playlist)
except PlaylistError: except PlaylistError:
LOG.info('Skipping Kodi playlist %s', playlist) LOG.info('Skipping Kodi playlist %s', path)
for kodi_path in old_kodi_paths: for kodi_path in old_kodi_paths:
playlist = db.get_playlist(path=kodi_path) playlist = db.get_playlist(path=kodi_path)
try: try: