mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	use _search_regex in GenericIE
This commit is contained in:
		| @@ -1430,16 +1430,12 @@ class GenericIE(InfoExtractor): | |||||||
|         #   Site Name | Video Title |         #   Site Name | Video Title | ||||||
|         #   Video Title - Tagline | Site Name |         #   Video Title - Tagline | Site Name | ||||||
|         # and so on and so forth; it's just not practical |         # and so on and so forth; it's just not practical | ||||||
|         mobj = re.search(r'<title>(.*)</title>', webpage) |         video_title = self._html_search_regex(r'<title>(.*)</title>', | ||||||
|         if mobj is None: |             webpage, u'video title') | ||||||
|             raise ExtractorError(u'Unable to extract title') |  | ||||||
|         video_title = mobj.group(1) |  | ||||||
|  |  | ||||||
|         # video uploader is domain name |         # video uploader is domain name | ||||||
|         mobj = re.match(r'(?:https?://)?([^/]*)/.*', url) |         video_uploader = self._search_regex(r'(?:https?://)?([^/]*)/.*', | ||||||
|         if mobj is None: |             url, u'video uploader') | ||||||
|             raise ExtractorError(u'Unable to extract title') |  | ||||||
|         video_uploader = mobj.group(1) |  | ||||||
|  |  | ||||||
|         return [{ |         return [{ | ||||||
|             'id':       video_id, |             'id':       video_id, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Filippo Valsorda
					Filippo Valsorda