aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/youtube.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-06-10 13:40:41 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-06-10 13:40:41 +0800
commit0c8662d2b6f033ad42f1cc97989d4975629b524b (patch)
tree7da6737e27587e6e6c452b525ae84f4ce5246e0d /youtube_dl/extractor/youtube.py
parent4da31bd56629054497634d041035e4bd6fcfacbb (diff)
[youtube] Fix a TypeError caused by 4da31bd56629054497634d041035e4bd6fcfacbb
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r--youtube_dl/extractor/youtube.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 2424ac2c0..a1906eef6 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -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')],