diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2015-10-18 17:15:47 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2015-10-18 17:15:47 +0800 |
commit | f322bfb0638aeeb527459ebcf00f8a3dde26280c (patch) | |
tree | c9a42ebb1509d570b5e54284b74a940954bc5b2e | |
parent | 014e880372e896cdd63f9075864d2a3bba60e706 (diff) |
[twitter:card] Remove unneeded 'ext'
-rw-r--r-- | youtube_dl/extractor/twitter.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/youtube_dl/extractor/twitter.py b/youtube_dl/extractor/twitter.py index 5f697782e..48bef5d80 100644 --- 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 = { + formats.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 |