mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-11-05 10:32:43 +01:00
Fix extraction of og content in single quotes
This commit is contained in:
parent
659aa21ba1
commit
c1206423c4
@ -399,7 +399,7 @@ class InfoExtractor(object):
|
||||
# Helper functions for extracting OpenGraph info
|
||||
@staticmethod
|
||||
def _og_regexes(prop):
|
||||
content_re = r'content=(?:"([^>]+?)"|\'(.+?)\')'
|
||||
content_re = r'content=(?:"([^>]+?)"|\'([^>]+?)\')'
|
||||
property_re = r'(?:name|property)=[\'"]og:%s[\'"]' % re.escape(prop)
|
||||
template = r'<meta[^>]+?%s[^>]+?%s'
|
||||
return [
|
||||
|
Loading…
Reference in New Issue
Block a user