Fix extraction of og content in single quotes
authordst <dstftw@gmail.com>
Thu, 30 Jan 2014 20:57:33 +0000 (03:57 +0700)
committerdst <dstftw@gmail.com>
Thu, 30 Jan 2014 20:57:33 +0000 (03:57 +0700)
youtube_dl/extractor/common.py

index 70ba9eaba3f1e4cc32207867ba3dc6a4ed0d2b10..2c0c75604b96cfd08a283c0d93ef36f85b525922 100644 (file)
@@ -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 [