diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2015-06-06 22:22:26 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2015-06-06 22:22:26 +0800 |
commit | 4da31bd56629054497634d041035e4bd6fcfacbb (patch) | |
tree | 1a1abe62e7bae3edb29385443a300d80ac180a8a | |
parent | 423d2be5f8c5e70d202ddfa63f3e5365e6afe823 (diff) |
[youtube] Fix a FutureWarning from xml.etree.ElementTree
-rw-r--r-- | youtube_dl/extractor/youtube.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 6d288e848..2424ac2c0 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 segment_list: + if len(segment_list): 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')], |