|
@ -399,7 +399,7 @@ class InfoExtractor(object): |
|
|
# Helper functions for extracting OpenGraph info |
|
|
# Helper functions for extracting OpenGraph info |
|
|
@staticmethod |
|
|
@staticmethod |
|
|
def _og_regexes(prop): |
|
|
def _og_regexes(prop): |
|
|
content_re = r'content=(?:"([^>]+?)"|\'(.+?)\')' |
|
|
|
|
|
|
|
|
content_re = r'content=(?:"([^>]+?)"|\'([^>]+?)\')' |
|
|
property_re = r'(?:name|property)=[\'"]og:%s[\'"]' % re.escape(prop) |
|
|
property_re = r'(?:name|property)=[\'"]og:%s[\'"]' % re.escape(prop) |
|
|
template = r'<meta[^>]+?%s[^>]+?%s' |
|
|
template = r'<meta[^>]+?%s[^>]+?%s' |
|
|
return [ |
|
|
return [ |
|
|