projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fa7e58
)
[gorillavid] Use `_form_hidden_inputs`
author
Sergey M․
<dstftw@gmail.com>
Fri, 10 Jul 2015 15:58:49 +0000
(21:58 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 10 Jul 2015 15:58:49 +0000
(21:58 +0600)
youtube_dl/extractor/gorillavid.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/gorillavid.py
b/youtube_dl/extractor/gorillavid.py
index 6147596e4c5d082d54f975b7428a400679b9dc32..aabf07a20677c6e940d609565e44dfd330512cd7 100644
(file)
--- a/
youtube_dl/extractor/gorillavid.py
+++ b/
youtube_dl/extractor/gorillavid.py
@@
-78,12
+78,7
@@
class GorillaVidIE(InfoExtractor):
if re.search(self._FILE_NOT_FOUND_REGEX, webpage) is not None:
raise ExtractorError('Video %s does not exist' % video_id, expected=True)
- fields = dict(re.findall(r'''(?x)<input\s+
- type="hidden"\s+
- name="([^"]+)"\s+
- (?:id="[^"]+"\s+)?
- value="([^"]*)"
- ''', webpage))
+ fields = self._form_hidden_inputs(webpage)
if fields['op'] == 'download1':
countdown = int_or_none(self._search_regex(