logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 4180a3d8b7c40792b5371ca8804c1dad8fabd56d
parent ef47b2c15f3fa9d9d491090f2ea46d2bd9967d21
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sat, 10 Oct 2015 01:44:33 +0600

[extractor/common] Allow quoteless content attribute in og regexes (Closes #7115)

Diffstat:

Myoutube_dl/extractor/common.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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 [