aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-10-10 01:44:33 +0600
committerSergey M․ <dstftw@gmail.com>2015-10-10 01:46:01 +0600
commit4180a3d8b7c40792b5371ca8804c1dad8fabd56d (patch)
tree89d57c3fbb54b08a38ac8e3cfe372701a60f87c5 /youtube_dl
parentef47b2c15f3fa9d9d491090f2ea46d2bd9967d21 (diff)
[extractor/common] Allow quoteless content attribute in og regexes (Closes #7115)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 242618c58..0082a4c84 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -645,7 +645,7 @@ class InfoExtractor(object):
# 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 [