projects
/
plugin.video.netflix.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3fdb6b6
)
fix(msl): Correct transformation of subtitle entries in dash manifest
author
Johannes Trum
<johannes@die-trums.de>
Sun, 9 Apr 2017 18:36:10 +0000
(20:36 +0200)
committer
Johannes Trum
<johannes@die-trums.de>
Sun, 9 Apr 2017 18:36:10 +0000
(20:36 +0200)
resources/lib/MSL.py
patch
|
blob
|
history
diff --git
a/resources/lib/MSL.py
b/resources/lib/MSL.py
index ba6dc2dd42045011ad8cfe4742bfa60728e2fe10..ef7e93be5a6c20ba6ab7ce85881eb09bfa009dc3 100644
(file)
--- a/
resources/lib/MSL.py
+++ b/
resources/lib/MSL.py
@@
-355,27
+355,22
@@
class MSL:
segment_base = ET.SubElement(rep, 'SegmentBase', indexRange="0-"+str(init_length), indexRangeExact="true")
ET.SubElement(segment_base, 'Initialization', range='0-'+str(init_length))
segment_base = ET.SubElement(rep, 'SegmentBase', indexRange="0-"+str(init_length), indexRangeExact="true")
ET.SubElement(segment_base, 'Initialization', range='0-'+str(init_length))
- # Multiple Adaption Set for subtiles
+ # Multiple Adaption Set
s
for subtiles
for text_track in manifest['textTracks']:
for text_track in manifest['textTracks']:
- print text_track
if 'downloadables' not in text_track or text_track['downloadables'] is None:
continue
subtiles_adaption_set = ET.SubElement(period, 'AdaptationSet',
lang=text_track['bcp47'],
if 'downloadables' not in text_track or text_track['downloadables'] is None:
continue
subtiles_adaption_set = ET.SubElement(period, 'AdaptationSet',
lang=text_track['bcp47'],
+ codecs='stpp',
contentType='text',
contentType='text',
- mimeType='
text/tt
ml')
+ mimeType='
application/ttml+x
ml')
for downloadable in text_track['downloadables']:
rep = ET.SubElement(subtiles_adaption_set, 'Representation',
for downloadable in text_track['downloadables']:
rep = ET.SubElement(subtiles_adaption_set, 'Representation',
- bandwidth='0',
nflxProfile=downloadable['contentProfile']
)
nflxProfile=downloadable['contentProfile']
)
- print downloadable['urls']
ET.SubElement(rep, 'BaseURL').text = self.__get_base_url(downloadable['urls'])
ET.SubElement(rep, 'BaseURL').text = self.__get_base_url(downloadable['urls'])
-
-
-
xml = ET.tostring(root, encoding='utf-8', method='xml')
xml = xml.replace('\n', '').replace('\r', '')
return xml
xml = ET.tostring(root, encoding='utf-8', method='xml')
xml = xml.replace('\n', '').replace('\r', '')
return xml