[lynda] minor changes
[youtube-dl] / youtube_dl / extractor / common.py
index f7247752e0c510367a3ce342546790d6b57ef922..f498bcf6f5af1feb05eb8df0184f77e6336ac878 100644 (file)
@@ -378,7 +378,7 @@ class InfoExtractor(object):
     @staticmethod
     def _og_regexes(prop):
         content_re = r'content=(?:"([^>]+?)"|\'(.+?)\')'
-        property_re = r'property=[\'"]og:%s[\'"]' % re.escape(prop)
+        property_re = r'(?:name|property)=[\'"]og:%s[\'"]' % re.escape(prop)
         template = r'<meta[^>]+?%s[^>]+?%s'
         return [
             template % (property_re, content_re),