youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 8fa7e5817a37756e4135fcb9daba47fc543be36a
parent 01b89d5682adaecfd319897683b2043cfc7344c6
Author: Sergey M․ <dstftw@gmail.com>
Date:   Fri, 10 Jul 2015 21:58:24 +0600

[hostingbulk] Use `_form_hidden_inputs`

Diffstat:
Myoutube_dl/extractor/hostingbulk.py | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git 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')