mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[common] Simplify og_search_property
This commit is contained in:
		| @@ -322,9 +322,9 @@ class InfoExtractor(object): | ||||
|         if name is None: | ||||
|             name = 'OpenGraph %s' % prop | ||||
|         escaped = self._search_regex(self._og_regex(prop), html, name, flags=re.DOTALL, **kargs) | ||||
|         if not escaped is None: | ||||
|             return unescapeHTML(escaped) | ||||
|         if escaped is None: | ||||
|             return None | ||||
|         return unescapeHTML(escaped) | ||||
|  | ||||
|     def _og_search_thumbnail(self, html, **kargs): | ||||
|         return self._og_search_property('image', html, u'thumbnail url', fatal=False, **kargs) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister