aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-10-18 18:23:56 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-10-18 18:23:56 +0800
commitc88aec845a680ef9404b637b3dbcf706dcf00b68 (patch)
tree6f826752f8f5c8b006418896e13ed986482b6a48 /youtube_dl/extractor
parent77a54b6a658059a11de415d793588fdbfec14194 (diff)
[twitter] Fix short URL extraction
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/twitter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/twitter.py b/youtube_dl/extractor/twitter.py
index 1cdca544c..1472f22a7 100644
--- a/youtube_dl/extractor/twitter.py
+++ b/youtube_dl/extractor/twitter.py
@@ -128,7 +128,7 @@ class TwitterIE(InfoExtractor):
title = self._og_search_description(webpage).strip('').replace('\n', ' ')
# strip 'https -_t.co_BJYgOjSeGA' junk from filenames
- mobj = re.match(r'“(.*)\s+(http://[^ ]+)”', title)
+ mobj = re.match(r'“(.*)\s+(https?://[^ ]+)”', title)
title, short_url = mobj.groups()
card_id = self._search_regex(