projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77a54b6
)
[twitter] Fix short URL extraction
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sun, 18 Oct 2015 10:23:56 +0000
(18:23 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sun, 18 Oct 2015 10:23:56 +0000
(18:23 +0800)
youtube_dl/extractor/twitter.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/twitter.py
b/youtube_dl/extractor/twitter.py
index 1cdca544cb31368c09fda9b05d501ab2fa827dcf..1472f22a71bec6a22e133529c6a31642a9d220d1 100644
(file)
--- 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+(http
s?
://[^ ]+)”', title)
title, short_url = mobj.groups()
card_id = self._search_regex(