From 3fd40b64c64aebef0d535513034cf09831bd720d Mon Sep 17 00:00:00 2001 From: croneter Date: Tue, 7 Aug 2018 18:11:23 +0200 Subject: [PATCH] Fix library sync crash due to exotic playlist characters - Fixes #523 --- resources/lib/playlists/kodi_pl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/playlists/kodi_pl.py b/resources/lib/playlists/kodi_pl.py index 41a0c146..a2e01a20 100644 --- a/resources/lib/playlists/kodi_pl.py +++ b/resources/lib/playlists/kodi_pl.py @@ -115,7 +115,7 @@ def _write_playlist_to_file(playlist, xml): text += ('#EXTINF:%s,%s\n%s\n' % (api.runtime(), api.title(), api.path())) text += '\n' - text = text.encode(v.M3U_ENCODING, 'strict') + text = text.encode(v.M3U_ENCODING, 'ignore') try: with open(path_ops.encode_path(playlist.kodi_path), 'wb') as f: f.write(text)