aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authordst <dstftw@gmail.com>2014-01-31 03:57:33 +0700
committerdst <dstftw@gmail.com>2014-01-31 03:57:33 +0700
commitc1206423c42993133e374c10ead136746b31232d (patch)
tree9dd59cb160a63d66656b2300c16d3e075613ec58 /youtube_dl/extractor
parent659aa21ba11a6c32ce543ab4be913ed1b07ccf43 (diff)
Fix extraction of og content in single quotes
Diffstat (limited to 'youtube_dl/extractor')
-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 70ba9eaba..2c0c75604 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -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 [