Fix DTS-HD audio is not correctly identified
- Fixes #42 - You need to reset the Kodi DB to take advantage
This commit is contained in:
parent
6860fe502e
commit
5544dfd2fe
1 changed files with 2 additions and 2 deletions
|
@ -1809,8 +1809,8 @@ class API():
|
||||||
elif mediaType == 2: # Audio streams
|
elif mediaType == 2: # Audio streams
|
||||||
audiotrack = {}
|
audiotrack = {}
|
||||||
audiotrack['codec'] = mediaStream['codec'].lower()
|
audiotrack['codec'] = mediaStream['codec'].lower()
|
||||||
profile = mediaStream.get('codecID', '').lower()
|
if ("dca" in audiotrack['codec'] and
|
||||||
if "dca" in audiotrack['codec'] and "dts-hd ma" in profile:
|
"ma" in mediaStream.get('profile', '').lower()):
|
||||||
audiotrack['codec'] = "dtshd_ma"
|
audiotrack['codec'] = "dtshd_ma"
|
||||||
audiotrack['channels'] = mediaStream.get('channels')
|
audiotrack['channels'] = mediaStream.get('channels')
|
||||||
# 'unknown' if we cannot get language
|
# 'unknown' if we cannot get language
|
||||||
|
|
Loading…
Reference in a new issue