projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5d2c0fd
)
[common] Fix for youtube
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 30 Jan 2016 13:36:01 +0000
(21:36 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 30 Jan 2016 13:36:01 +0000
(21:36 +0800)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 83628a68fb9a95f24e59cd6866d190b5eb61cad8..243db71dcb34c6fe4684fb6cd2f6933e581ef2a7 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-1346,8
+1346,8
@@
class InfoExtractor(object):
elif mime_type.startswith('audio/') or mime_type.startswith('video/'):
segment_list = r.find(_add_ns('SegmentList'))
format_id = r.attrib['id']
elif mime_type.startswith('audio/') or mime_type.startswith('video/'):
segment_list = r.find(_add_ns('SegmentList'))
format_id = r.attrib['id']
- video_url = url_el.text if url_el else None
- filesize = int_or_none(url_el.attrib.get('{http://youtube.com/yt/2012/10/10}contentLength') if url_el else None)
+ video_url = url_el.text if url_el
is not None
else None
+ filesize = int_or_none(url_el.attrib.get('{http://youtube.com/yt/2012/10/10}contentLength') if url_el
is not None
else None)
f = {
'format_id': format_id,
'url': video_url,
f = {
'format_id': format_id,
'url': video_url,