projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
014e880
)
[twitter:card] Remove unneeded 'ext'
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sun, 18 Oct 2015 09:15:47 +0000
(17:15 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sun, 18 Oct 2015 09:15:47 +0000
(17:15 +0800)
youtube_dl/extractor/twitter.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/twitter.py
b/youtube_dl/extractor/twitter.py
index 5f697782e81980c37e3cda37286f6c70015828b0..48bef5d80eeae7efa4bbb913b28b554afdcbb935 100644
(file)
--- a/
youtube_dl/extractor/twitter.py
+++ b/
youtube_dl/extractor/twitter.py
@@
-64,13
+64,9
@@
class TwitterCardIE(InfoExtractor):
if 'vmapUrl' in config:
vmap_data = self._download_xml(config['vmapUrl'], video_id)
video_url = xpath_text(vmap_data, './/MediaFile').strip()
- f
=
{
+ f
ormats.append(
{
'url': video_url,
- }
- ext = re.search(r'\.([a-z0-9]{2,4})(\?.+)?$', video_url)
- if ext:
- f['ext'] = ext.group(1)
- formats.append(f)
+ })
break # same video regardless of UA
continue