projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4da31bd
)
[youtube] Fix a TypeError caused by 4da31bd56629054497634d041035e4bd6fcfacbb
author
Yen Chi Hsuan
<yan12125@gmail.com>
Wed, 10 Jun 2015 05:40:41 +0000
(13:40 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Wed, 10 Jun 2015 05:40:41 +0000
(13:40 +0800)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 2424ac2c0c5df0afac139be7629986b84625a1d1..a1906eef62b251e6b961afdb0030cf5ee895ef8d 100644
(file)
--- 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')],