0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-27 03:03:01 +00:00

[extractor/common] Expand meta regex

This commit is contained in:
Sergey M․ 2015-08-15 15:58:30 +06:00
parent 8b8c1093b6
commit 8b9848ac56

View file

@ -640,7 +640,7 @@ def _og_regexes(prop):
@staticmethod @staticmethod
def _meta_regex(prop): def _meta_regex(prop):
return r'''(?isx)<meta return r'''(?isx)<meta
(?=[^>]+(?:itemprop|name|property|id)=(["\']?)%s\1) (?=[^>]+(?:itemprop|name|property|id|http-equiv)=(["\']?)%s\1)
[^>]+?content=(["\'])(?P<content>.*?)\2''' % re.escape(prop) [^>]+?content=(["\'])(?P<content>.*?)\2''' % re.escape(prop)
def _og_search_property(self, prop, html, name=None, **kargs): def _og_search_property(self, prop, html, name=None, **kargs):