浏览代码

[extractor/common] Expand meta regex

Sergey M․ 10 年之前
父节点
当前提交
8b9848ac56
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/common.py

+ 1 - 1
youtube_dl/extractor/common.py

@@ -640,7 +640,7 @@ class InfoExtractor(object):
     @staticmethod
     @staticmethod
     def _meta_regex(prop):
     def _meta_regex(prop):
         return r'''(?isx)<meta
         return r'''(?isx)<meta
-                    (?=[^>]+(?:itemprop|name|property|id)=(["\']?)%s\1)
+                    (?=[^>]+(?:itemprop|name|property|id|http-equiv)=(["\']?)%s\1)
                     [^>]+?content=(["\'])(?P<content>.*?)\2''' % re.escape(prop)
                     [^>]+?content=(["\'])(?P<content>.*?)\2''' % re.escape(prop)
 
 
     def _og_search_property(self, prop, html, name=None, **kargs):
     def _og_search_property(self, prop, html, name=None, **kargs):