Optimize logging
This commit is contained in:
parent
63c829b042
commit
b00ec8989c
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue