]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/hostingbulk.py
Imported Upstream version 2015.07.21
[youtubedl] / youtube_dl / extractor / hostingbulk.py
index 704d0285d3e1c2ce10e8f3929543c6c66b0fd58a..a3154cfdeccf9b4c18cf5a5b01f7944243fb1509 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._hidden_inputs(webpage)
 
         request = compat_urllib_request.Request(url, urlencode_postdata(fields))
         request.add_header('Content-type', 'application/x-www-form-urlencoded')