projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01b89d5
)
[hostingbulk] Use `_form_hidden_inputs`
author
Sergey M․
<dstftw@gmail.com>
Fri, 10 Jul 2015 15:58:24 +0000
(21:58 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 10 Jul 2015 15:58:24 +0000
(21:58 +0600)
youtube_dl/extractor/hostingbulk.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/hostingbulk.py
b/youtube_dl/extractor/hostingbulk.py
index 704d0285d3e1c2ce10e8f3929543c6c66b0fd58a..63f579592cf4d9c78c00ef30176aceade4a50594 100644
(file)
--- 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')