浏览代码

[README] Adapt code to new style

Next to every IE will download the webpage first anyways.
Philipp Hagemeister 10 年之前
父节点
当前提交
c920d7f00d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -492,9 +492,9 @@ If you want to add support for a new site, you can follow this quick list (assum
 
 
         def _real_extract(self, url):
         def _real_extract(self, url):
             video_id = self._match_id(url)
             video_id = self._match_id(url)
+            webpage = self._download_webpage(url, video_id)
 
 
             # TODO more code goes here, for example ...
             # TODO more code goes here, for example ...
-            webpage = self._download_webpage(url, video_id)
             title = self._html_search_regex(r'<h1>(.*?)</h1>', webpage, 'title')
             title = self._html_search_regex(r'<h1>(.*?)</h1>', webpage, 'title')
 
 
             return {
             return {