[malltv] Add extractor (closes #18058)
This commit is contained in:
parent
49bd993fd9
commit
22f5f5c6fc
5 changed files with 63 additions and 2 deletions
|
@ -1058,7 +1058,7 @@ class InfoExtractor(object):
|
|||
@staticmethod
|
||||
def _og_regexes(prop):
|
||||
content_re = r'content=(?:"([^"]+?)"|\'([^\']+?)\'|\s*([^\s"\'=<>`]+?))'
|
||||
property_re = (r'(?:name|property)=(?:\'og:%(prop)s\'|"og:%(prop)s"|\s*og:%(prop)s\b)'
|
||||
property_re = (r'(?:name|property)=(?:\'og[:-]%(prop)s\'|"og[:-]%(prop)s"|\s*og[:-]%(prop)s\b)'
|
||||
% {'prop': re.escape(prop)})
|
||||
template = r'<meta[^>]+?%s[^>]+?%s'
|
||||
return [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue