2018-03-24, 20:39
I fixed it based on debugging I done at my End. Look like API response has been changed hence return search data is dict not list.
File : addons/service.subtitles.opensubtitles/service.py line#44
it worked for me! hope it will work for you guys too.
PS : its quick fix not very clean one.
File : addons/service.subtitles.opensubtitles/service.py line#44
python:
if search_data != None:
#FIX : Comment out this sort stuff
#search_data.sort(key=lambda x: [not x['MatchedBy'] == 'moviehash',
# not os.path.splitext(x['SubFileName'])[0] == os.path.splitext(os.path.basename(urllib.unquote(xbmc.Player().getPlayingFile().decode('utf-8'))))[0],
# not normalizeString(xbmc.getInfoLabel("VideoPlayer.OriginalTitle")).lower() in x['SubFileName'].replace('.',' ').lower(),
# not x['LanguageName'] == PreferredSub])
for item_data1 in search_data:
#FIX : update as its dict
item_data = search_data[item_data1]
it worked for me! hope it will work for you guys too.
PS : its quick fix not very clean one.