]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[hostingbulk] Use `_form_hidden_inputs`
authorSergey M․ <dstftw@gmail.com>
Fri, 10 Jul 2015 15:58:24 +0000 (21:58 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 10 Jul 2015 15:58:24 +0000 (21:58 +0600)
youtube_dl/extractor/hostingbulk.py

index 704d0285d3e1c2ce10e8f3929543c6c66b0fd58a..63f579592cf4d9c78c00ef30176aceade4a50594 100644 (file)
@@ -58,11 +58,7 @@ class HostingBulkIE(InfoExtractor):
             r'<img src="([^"]+)".+?class="pic"',
             webpage, 'thumbnail', fatal=False)
 
-        fields = dict(re.findall(r'''(?x)<input\s+
-            type="hidden"\s+
-            name="([^"]+)"\s+
-            value="([^"]*)"
-            ''', webpage))
+        fields = self._form_hidden_inputs(webpage)
 
         request = compat_urllib_request.Request(url, urlencode_postdata(fields))
         request.add_header('Content-type', 'application/x-www-form-urlencoded')