Use language codes ('spa'), not verbose 'español'. You will have to reset your Kodi DB manually to profit from this change. Fixes #61

This commit is contained in:
tomkat83 2016-06-19 15:53:36 +02:00
parent 792d4debeb
commit 8ebb867f78

View file

@ -1815,13 +1815,14 @@ class API():
audiotrack['channels'] = mediaStream.get('channels') audiotrack['channels'] = mediaStream.get('channels')
# 'unknown' if we cannot get language # 'unknown' if we cannot get language
audiotrack['language'] = mediaStream.get( audiotrack['language'] = mediaStream.get(
'language', self.__language__(39310)) 'languageCode', self.__language__(39310)).lower()
audiotracks.append(audiotrack) audiotracks.append(audiotrack)
elif mediaType == 3: # Subtitle streams elif mediaType == 3: # Subtitle streams
# 'unknown' if we cannot get language # 'unknown' if we cannot get language
subtitlelanguages.append( subtitlelanguages.append(
mediaStream.get('language', self.__language__(39310))) mediaStream.get('languageCode',
self.__language__(39310)).lower())
return { return {
'video': videotracks, 'video': videotracks,
'audio': audiotracks, 'audio': audiotracks,