From: Sebastian Golasch Date: Mon, 27 Feb 2017 12:56:01 +0000 (+0100) Subject: Merge branch 'master' of github.com:asciidisco/plugin.video.netflix X-Git-Url: http://git.code-monkey.de/?p=plugin.video.netflix.git;a=commitdiff_plain;h=2fd60d09e71cbb24ac7ffb489fe5f56c9d0292d7;hp=c57d85a26ec1054364c05a100842e68d56f93a9e Merge branch 'master' of github.com:asciidisco/plugin.video.netflix * 'master' of github.com:asciidisco/plugin.video.netflix: Set MPD::mediaPresentationDuration --- diff --git a/resources/lib/MSL.py b/resources/lib/MSL.py index 92f8d9e..7210c71 100644 --- a/resources/lib/MSL.py +++ b/resources/lib/MSL.py @@ -207,15 +207,13 @@ class MSL: if len(manifest['psshb64']) >= 1: pssh = manifest['psshb64'][0] - + seconds = manifest['runtime']/1000 + duration = "PT"+str(seconds)+".00S" root = ET.Element('MPD') root.attrib['xmlns'] = 'urn:mpeg:dash:schema:mpd:2011' root.attrib['xmlns:cenc'] = 'urn:mpeg:cenc:2013' - - - seconds = manifest['runtime']/1000 - duration = "PT"+str(seconds)+".00S" + root.attrib['mediaPresentationDuration'] = duration period = ET.SubElement(root, 'Period', start='PT0S', duration=duration)