[twitter] Fix short URL extraction
authorYen Chi Hsuan <yan12125@gmail.com>
Sun, 18 Oct 2015 10:23:56 +0000 (18:23 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sun, 18 Oct 2015 10:23:56 +0000 (18:23 +0800)
youtube_dl/extractor/twitter.py

index 1cdca544cb31368c09fda9b05d501ab2fa827dcf..1472f22a71bec6a22e133529c6a31642a9d220d1 100644 (file)
@@ -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(