From 1637fa7870241c07fac8f53c2bd9c10a148efeb7 Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Wed, 30 Oct 2019 16:57:37 +0100 Subject: [PATCH] Fix Aggiunta alla videoteca per serie con caratteri Giapponesi (unicode) --- core/videolibrarytools.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/videolibrarytools.py b/core/videolibrarytools.py index c20feba1..5a85aab1 100644 --- a/core/videolibrarytools.py +++ b/core/videolibrarytools.py @@ -224,6 +224,7 @@ def save_movie(item): return 0, 0, -1 def filter_list(episodelist, action=None, path=None): + if path: path = path.decode('utf8') channel_prefs = {} lang_sel = quality_sel = show_title = channel ='' if action: @@ -396,13 +397,13 @@ def save_tvshow(item, episodelist): _id = item.infoLabels['code'][0] if config.get_setting("original_title_folder", "videolibrary") == 1 and item.infoLabels['originaltitle']: - base_name = item.infoLabels['originaltitle'] + base_name = item.infoLabels[u'originaltitle'] elif item.infoLabels['tvshowtitle']: - base_name = item.infoLabels['tvshowtitle'] + base_name = item.infoLabels[u'tvshowtitle'] elif item.infoLabels['title']: - base_name = item.infoLabels['title'] + base_name = item.infoLabels[u'title'] else: - base_name = item.contentSerieName + base_name = u'%s' % item.contentSerieName base_name = unicode(filetools.validate_path(base_name.replace('/', '-')), "utf8").encode("utf8")