]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[mooshare] Modernize
authorNaglis Jonaitis <njonaitis@gmail.com>
Mon, 15 Dec 2014 01:31:54 +0000 (03:31 +0200)
committerNaglis Jonaitis <njonaitis@gmail.com>
Mon, 15 Dec 2014 01:31:54 +0000 (03:31 +0200)
youtube_dl/extractor/mooshare.py

index 9f2853fa32a031bae5f4d5fab4ee9cab93dbafc8..4c5a4e673f08dbae7075f9db567a1f238e18e1a1 100644 (file)
@@ -64,8 +64,7 @@ class MooshareIE(InfoExtractor):
             'http://mooshare.biz/%s' % video_id, compat_urllib_parse.urlencode(download_form))
         request.add_header('Content-Type', 'application/x-www-form-urlencoded')
 
-        self.to_screen('%s: Waiting for timeout' % video_id)
-        time.sleep(5)
+        self._sleep(5, video_id)
 
         video_page = self._download_webpage(request, video_id, 'Downloading video page')