mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 00:47:08 -05:00 
			
		
		
		
	[twitter] Use _html_search_regex
This commit is contained in:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user