From: Yen Chi Hsuan Date: Sun, 18 Oct 2015 10:23:56 +0000 (+0800) Subject: [twitter] Fix short URL extraction X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=c88aec845a680ef9404b637b3dbcf706dcf00b68;p=youtube-dl [twitter] Fix short URL extraction --- 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(