[README] Adapt code to new style
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 25 Nov 2014 08:23:44 +0000 (09:23 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 25 Nov 2014 08:23:46 +0000 (09:23 +0100)
Next to every IE will download the webpage first anyways.

README.md

index c284db4955130065504aabe046ac4c0526917ba4..6e572813c62881b276c392e7d9e98979230ffe16 100644 (file)
--- a/README.md
+++ b/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):
             video_id = self._match_id(url)
+            webpage = self._download_webpage(url, video_id)
 
             # TODO more code goes here, for example ...
-            webpage = self._download_webpage(url, video_id)
             title = self._html_search_regex(r'<h1>(.*?)</h1>', webpage, 'title')
 
             return {