aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-07-10 21:58:24 +0600
committerSergey M․ <dstftw@gmail.com>2015-07-10 21:58:24 +0600
commit8fa7e5817a37756e4135fcb9daba47fc543be36a (patch)
treea29da2241b32e5964bfa8b97e5ce2cda6799ff6a
parent01b89d5682adaecfd319897683b2043cfc7344c6 (diff)
[hostingbulk] Use `_form_hidden_inputs`
-rw-r--r--youtube_dl/extractor/hostingbulk.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/youtube_dl/extractor/hostingbulk.py b/youtube_dl/extractor/hostingbulk.py
index 704d0285d..63f579592 100644
--- a/youtube_dl/extractor/hostingbulk.py
+++ b/youtube_dl/extractor/hostingbulk.py
@@ -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')