浏览代码

[voicerepublic] Extract author using _html_search_meta

Duncan 10 年之前
父节点
当前提交
f900dc3fb9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/voicerepublic.py

+ 1 - 1
youtube_dl/extractor/voicerepublic.py

@@ -51,5 +51,5 @@ class VoiceRepublicIE(InfoExtractor):
             'url': self._og_search_url(webpage),
             'thumbnail': thumbnail,
             'description': self._og_search_description(webpage),
-            'creator': self._search_regex(r'<meta content=\'([^\']*?)\' name=\'author\'>', webpage, 'author', fatal=False),
+            'creator': self._html_search_meta('author', webpage),
         }