projects
/
plugin.video.netflix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore(docs): Update README
[plugin.video.netflix.git]
/
resources
/
lib
/
MSL.py
diff --git
a/resources/lib/MSL.py
b/resources/lib/MSL.py
index 92f8d9ea5a32c589dcf1fddb2e200bf08a976aa3..7210c71f31a5817729188e28708db4dec7498aee 100644
(file)
--- 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]
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'
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)
period = ET.SubElement(root, 'Period', start='PT0S', duration=duration)