浏览代码

[twitter] Fix short URL extraction

Yen Chi Hsuan 10 年之前
父节点
当前提交
c88aec845a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/twitter.py

+ 1 - 1
youtube_dl/extractor/twitter.py

@@ -128,7 +128,7 @@ class TwitterIE(InfoExtractor):
         title = self._og_search_description(webpage).strip('').replace('\n', ' ')
         title = self._og_search_description(webpage).strip('').replace('\n', ' ')
 
 
         # strip  'https -_t.co_BJYgOjSeGA' junk from filenames
         # 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()
         title, short_url = mobj.groups()
 
 
         card_id = self._search_regex(
         card_id = self._search_regex(