mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-15 21:03:18 +00:00
[extractor/common] Allow quoteless content attribute in og regexes (Closes #7115)
This commit is contained in:
parent
ef47b2c15f
commit
4180a3d8b7
|
@ -645,7 +645,7 @@ def _get_tfa_info(self, note='two-factor verification code'):
|
|||
# Helper functions for extracting OpenGraph info
|
||||
@staticmethod
|
||||
def _og_regexes(prop):
|
||||
content_re = r'content=(?:"([^>]+?)"|\'([^>]+?)\')'
|
||||
content_re = r'content=(?:"([^>]+?)"|\'([^>]+?)\'|\s*([^\s"\'=<>`]+?))'
|
||||
property_re = r'(?:name|property)=[\'"]?og:%s[\'"]?' % re.escape(prop)
|
||||
template = r'<meta[^>]+?%s[^>]+?%s'
|
||||
return [
|
||||
|
|
Loading…
Reference in a new issue