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
|
||||
audiotrack = {}
|
||||
audiotrack['codec'] = mediaStream['codec'].lower()
|
||||
profile = mediaStream.get('codecID', '').lower()
|
||||
if "dca" in audiotrack['codec'] and "dts-hd ma" in profile:
|
||||
if ("dca" in audiotrack['codec'] and
|
||||
"ma" in mediaStream.get('profile', '').lower()):
|
||||
audiotrack['codec'] = "dtshd_ma"
|
||||
audiotrack['channels'] = mediaStream.get('channels')
|
||||
# 'unknown' if we cannot get language
|
||||
|
|
Loading…
Reference in a new issue