Kodi 17 - Subtitles stoped working. Not able to download subs anymore

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
svortevik Offline
Junior Member
Posts: 23
Joined: Feb 2005
Reputation: 0
Post: #1
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/
find quote
IVO CORDEIRO Offline
Junior Member
Posts: 1
Joined: May 2017
Reputation: 0
Post: #2
nao tenho o codigo para ativaçao. Eaonde incerir o codigo?
find quote
ewwink Offline
Junior Member
Posts: 20
Joined: Apr 2017
Reputation: 0
Post: #3
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
(This post was last modified: 2017-05-09 06:47 by ewwink.)
find quote
ewwink Offline
Junior Member
Posts: 20
Joined: Apr 2017
Reputation: 0
Post: #4
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(","):
find quote
svortevik Offline
Junior Member
Posts: 23
Joined: Feb 2005
Reputation: 0
Post: #5
Thank you so much, now it is working again Smile
find quote