projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'atomicdryad-pr-crashfix_compat_urllib_unquote'
[youtube-dl]
/
youtube_dl
/
extractor
/
hostingbulk.py
diff --git
a/youtube_dl/extractor/hostingbulk.py
b/youtube_dl/extractor/hostingbulk.py
index 704d0285d3e1c2ce10e8f3929543c6c66b0fd58a..a3154cfdeccf9b4c18cf5a5b01f7944243fb1509 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)
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')
request = compat_urllib_request.Request(url, urlencode_postdata(fields))
request.add_header('Content-type', 'application/x-www-form-urlencoded')