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:
parent
792d4debeb
commit
8ebb867f78
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue