aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/common.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaimeMF@users.noreply.github.com>2014-01-31 10:23:46 -0800
committerJaime Marquínez Ferrándiz <jaimeMF@users.noreply.github.com>2014-01-31 10:23:46 -0800
commitc66dcda2872b60f8096dbad2be0738ac259330ca (patch)
tree25d434bedbfd11c325d65fe731fbbc41c1df9dbe /youtube_dl/extractor/common.py
parentc3309a7774479be04849f103ed330d2d348a4992 (diff)
parent6d845922abdf3f8736b2232220f91a31d5f489d0 (diff)
downloadyoutube-dl-c66dcda2872b60f8096dbad2be0738ac259330ca.tar.xz
Merge pull request #2282 from dstftw/lifenews
[lifenews] Add support for lifenews.ru and fix og content extraction regex
Diffstat (limited to 'youtube_dl/extractor/common.py')
-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 [