Optimize logging

This commit is contained in:
Croneter 2018-05-02 18:22:23 +02:00
parent 63c829b042
commit b00ec8989c

View file

@ -190,8 +190,7 @@ def m3u_to_plex_ids(playlist):
try: try:
text = text.decode(ENCODING) text = text.decode(ENCODING)
except UnicodeDecodeError: except UnicodeDecodeError:
LOG.warning('Fallback to ISO-8859-1 decoding for %s', LOG.warning('Fallback to ISO-8859-1 decoding for %s', playlist)
playlist.kodi_path)
text = text.decode('ISO-8859-1') text = text.decode('ISO-8859-1')
for entry in _m3u_iterator(text): for entry in _m3u_iterator(text):
plex_id = utils.REGEX_PLEX_ID.search(entry) plex_id = utils.REGEX_PLEX_ID.search(entry)