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:
tomkat83 2016-05-29 20:03:31 +02:00
parent 6860fe502e
commit 5544dfd2fe

View file

@ -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