projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b16d80
)
[promptfile] Use `_form_hidden_inputs`
author
Sergey M․
<dstftw@gmail.com>
Fri, 10 Jul 2015 15:56:14 +0000
(21:56 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 10 Jul 2015 15:56:14 +0000
(21:56 +0600)
youtube_dl/extractor/promptfile.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/promptfile.py
b/youtube_dl/extractor/promptfile.py
index f536e6e6cdfb3d71e21c98614e2baf117387493b..81a63c7fc40b21135b2b307ecb075967448a2d44 100644
(file)
--- a/
youtube_dl/extractor/promptfile.py
+++ b/
youtube_dl/extractor/promptfile.py
@@
-35,10
+35,7
@@
class PromptFileIE(InfoExtractor):
raise ExtractorError('Video %s does not exist' % video_id,
expected=True)
- fields = dict(re.findall(r'''(?x)type="hidden"\s+
- name="(.+?)"\s+
- value="(.*?)"
- ''', webpage))
+ fields = self._form_hidden_inputs(webpage)
post = compat_urllib_parse.urlencode(fields)
req = compat_urllib_request.Request(url, post)
req.add_header('Content-type', 'application/x-www-form-urlencoded')