aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-10-18 17:18:01 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-10-18 17:18:01 +0800
commitf6dfd6603a9e9bb88ebcdcd52490974a34d1bd11 (patch)
treea9e758270bb32024e90294429ed4c6ded9baee9d /youtube_dl
parente04edad621efe56347e155b6dc59a0c3d589b3bd (diff)
[twitter] Use _html_search_regex
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/twitter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/twitter.py b/youtube_dl/extractor/twitter.py
index c9b783745..6ff15369c 100644
--- 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: