[smotri] Simplify
This commit is contained in:
parent
25939ffe56
commit
aaebed13a8
2 changed files with 54 additions and 40 deletions
|
@ -364,7 +364,8 @@ class InfoExtractor(object):
|
|||
if display_name is None:
|
||||
display_name = name
|
||||
return self._html_search_regex(
|
||||
r'''(?ix)<meta(?=[^>]+(?:name|property)=["\']%s["\'])
|
||||
r'''(?ix)<meta
|
||||
(?=[^>]+(?:itemprop|name|property)=["\']%s["\'])
|
||||
[^>]+content=["\']([^"\']+)["\']''' % re.escape(name),
|
||||
html, display_name, fatal=False)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue