diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-10-10 01:44:33 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-10-10 01:46:01 +0600 |
commit | 4180a3d8b7c40792b5371ca8804c1dad8fabd56d (patch) | |
tree | 89d57c3fbb54b08a38ac8e3cfe372701a60f87c5 /youtube_dl/extractor | |
parent | ef47b2c15f3fa9d9d491090f2ea46d2bd9967d21 (diff) |
[extractor/common] Allow quoteless content attribute in og regexes (Closes #7115)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/common.py | 2 |
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 [ |