Version bump 1.1.18

Convert audio dts-hd ma to dts, because Kodi doesn't recognize it.
This commit is contained in:
angelblue05 2015-07-31 07:51:11 -05:00
parent 8763654a6d
commit ec5ad7d762
2 changed files with 5 additions and 3 deletions

View file

@ -134,7 +134,7 @@ class API():
videotrack['videocodec'] = "divx"
elif "mpeg4" in videotrack['videocodec']:
profile = mediaStream.get('Profile', "").lower()
if "simple profile" in profile or not profile:
if "simple profile" in profile or profile == "":
videotrack['videocodec'] = "xvid"
elif "h264" in videotrack['videocodec']:
if container in ("mp4", "mov", "m4v"):
@ -155,7 +155,9 @@ class API():
elif "Audio" in type:
audiotrack = {}
audiotrack['audiocodec'] = mediaStream.get('Codec')
audiotrack['audiocodec'] = mediaStream.get('Codec', "").lower()
if "dts-hd ma" in audiotrack['audiocodec']:
audiotrack['audiocodec'] = "dts"
audiotrack['channels'] = mediaStream.get('Channels')
audiotrack['audiolanguage'] = mediaStream.get('Language')
audiotracks.append(audiotrack)