From e6eac6e603802a1d6bc3e7a95a4469e65a2d3fd2 Mon Sep 17 00:00:00 2001 From: peak3d Date: Thu, 24 Aug 2017 20:15:27 +0200 Subject: [PATCH] Implement impaired key for audio tracks --- addon.xml | 2 +- resources/lib/MSL.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/addon.xml b/addon.xml index 78cac4cfe..6ac424bf2 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + diff --git a/resources/lib/MSL.py b/resources/lib/MSL.py index d0387972c..7111f17a8 100644 --- a/resources/lib/MSL.py +++ b/resources/lib/MSL.py @@ -337,7 +337,8 @@ def __tranform_to_dash(self, manifest): audio_adaption_set = ET.SubElement(period, 'AdaptationSet', lang=audio_track['bcp47'], contentType='audio', - mimeType='audio/mp4') + mimeType='audio/mp4', + impaired='true' if audio_track['trackType'] == 'ASSISTIVE' else 'false') for downloadable in audio_track['downloadables']: codec = 'aac' print downloadable