projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e04edad
)
[twitter] Use _html_search_regex
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sun, 18 Oct 2015 09:18:01 +0000
(17:18 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sun, 18 Oct 2015 09:18:01 +0000
(17:18 +0800)
youtube_dl/extractor/twitter.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/twitter.py
b/youtube_dl/extractor/twitter.py
index c9b7837451371def2e42aadbcc446ad784fa0d0e..6ff15369c4b58922559173e4d6b3cd211c5b3efe 100644
(file)
--- a/
youtube_dl/extractor/twitter.py
+++ b/
youtube_dl/extractor/twitter.py
@@
-122,7
+122,7
@@
class TwitterIE(InfoExtractor):
name = username
url = re.sub(r'https?://(m|mobile)\.', 'https://', url)
webpage = self._download_webpage(url, 'tweet: ' + url)
- description =
unescapeHTML(self._search_regex('<title>\s*(.+?)\s*</title>', webpage, 'title')
)
+ description =
self._html_search_regex('<title>\s*(.+?)\s*</title>', webpage, 'title'
)
title = description.replace('\n', ' ')
splitdesc = re.match(r'^(.+?)\s*on Twitter:\s* "(.+?)"$', title)
if splitdesc: