mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 05:34:15 +01:00
dash: new mimetype/content-type for subs.
time to look at Role?
This commit is contained in:
parent
e0632cd99c
commit
5ed21c0465
@ -249,6 +249,8 @@ def _dashparse(config, text, url, output, cookies, **kwargs):
|
||||
temp = xml.findall('.//{urn:mpeg:dash:schema:mpd:2011}AdaptationSet[@contentType="video"]')
|
||||
videofiles = adaptionset(attributes, temp, url, baseurl)
|
||||
temp = xml.findall('.//{urn:mpeg:dash:schema:mpd:2011}AdaptationSet[@contentType="text"]')
|
||||
if len(temp) == 0:
|
||||
temp = xml.findall('.//{urn:mpeg:dash:schema:mpd:2011}AdaptationSet[@mimeType="application/mp4"]')
|
||||
subtitles = adaptionset(attributes, temp, url, baseurl)
|
||||
|
||||
if not audiofiles or not videofiles:
|
||||
|
Loading…
Reference in New Issue
Block a user