A feature-rich command-line audio/video downloader
[twitter:card] Remove unneeded 'ext'
Yen Chi Hsuanf322bfb0638a
diff --git a/youtube_dl/extractor/twitter.py b/youtube_dl/extractor/twitter.pyindex 5f697782e8..48bef5d80e 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 UAcontinue