Kodi Community Forum
v17 Subtitles stoped working. Not able to download subs anymore - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Subtitle Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=143)
+---- Thread: v17 Subtitles stoped working. Not able to download subs anymore (/showthread.php?tid=313446)



Subtitles stoped working. Not able to download subs anymore - svortevik - 2017-04-30

I just updated to Kodi 17.1. At the same time downloading of subtitles stopped working.

Can someone please take a look at the log and tell me whats wrong? I have tried with subscene, opensubtitles and opensibtitles by opensubtitles.

Log: https://paste.ubuntu.com/24484613/


RE: Subtitles stoped working. Not able to download subs anymore - IVO CORDEIRO - 2017-05-06

nao tenho o codigo para ativaçao. Eaonde incerir o codigo?


RE: Subtitles stoped working. Not able to download subs anymore - ewwink - 2017-05-09

error in line 512
Code:
File ".........Kodi\addons\service.subtitles.subscene\service.py", line 512, in <module>
item['3let_language'].append(xbmc.convertLanguage(lang, xbmc.ISO_639_2))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 14: ordinal not in range(128)

error decoding character å, try unselect language Norwegian Bokmål in your subtitle setting


RE: Subtitles stoped working. Not able to download subs anymore - ewwink - 2017-05-09

or change and fix service.py in line 512 from

Code:
if 'languages' in params:
        for lang in urllib.unquote(params['languages']).decode('utf-8').split(","):

to
Code:
if 'languages' in params:
        languages = unicode(params['languages']).encode('utf-8')
        for lang in urllib.unquote(languages).decode('utf-8').split(","):



RE: Subtitles stoped working. Not able to download subs anymore - svortevik - 2017-05-09

Thank you so much, now it is working again Smile