mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
dashparse: use == compare ints..
This commit is contained in:
parent
feb503e013
commit
ecaced7b5c
@ -168,11 +168,11 @@ def _dashparse(config, text, url, output, cookies):
|
||||
duration_sec = (parse_dates(mediaPresentationDuration) - datetime(1900, 1, 1)).total_seconds()
|
||||
|
||||
temp = xml.findall('.//{urn:mpeg:dash:schema:mpd:2011}AdaptationSet[@mimeType="audio/mp4"]')
|
||||
if len(temp) is 0:
|
||||
if len(temp) == 0:
|
||||
temp = xml.findall('.//{urn:mpeg:dash:schema:mpd:2011}AdaptationSet[@contentType="audio"]')
|
||||
audiofiles = adaptionset(temp, url, baseurl, offset_sec, duration_sec)
|
||||
temp = xml.findall('.//{urn:mpeg:dash:schema:mpd:2011}AdaptationSet[@mimeType="video/mp4"]')
|
||||
if len(temp) is 0:
|
||||
if len(temp) == 0:
|
||||
temp = xml.findall('.//{urn:mpeg:dash:schema:mpd:2011}AdaptationSet[@contentType="video"]')
|
||||
videofiles = adaptionset(temp, url, baseurl, offset_sec, duration_sec)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user