From ec5ad7d7623006a2deaae6ed2ce0e6747a86a760 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Fri, 31 Jul 2015 07:51:11 -0500 Subject: [PATCH] Version bump 1.1.18 Convert audio dts-hd ma to dts, because Kodi doesn't recognize it. --- addon.xml | 2 +- resources/lib/API.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/addon.xml b/addon.xml index 6a222f8f..2589fd73 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ diff --git a/resources/lib/API.py b/resources/lib/API.py index c6a0593e..12b1823b 100644 --- a/resources/lib/API.py +++ b/resources/lib/API.py @@ -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)