mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-16 22:28:18 +01:00
[youtube] Fix a TypeError caused by 4da31bd566
This commit is contained in:
parent
4da31bd566
commit
0c8662d2b6
@ -816,7 +816,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
'filesize': filesize,
|
||||
'fps': int_or_none(r.attrib.get('frameRate')),
|
||||
}
|
||||
if len(segment_list):
|
||||
if segment_list is not None:
|
||||
f.update({
|
||||
'initialization_url': segment_list.find('{urn:mpeg:DASH:schema:MPD:2011}Initialization').attrib['sourceURL'],
|
||||
'segment_urls': [segment.attrib.get('media') for segment in segment_list.findall('{urn:mpeg:DASH:schema:MPD:2011}SegmentURL')],
|
||||
|
Loading…
Reference in New Issue
Block a user