youtube-dl

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

commit 2688176c776a2d80c6a4ba85f6e2d07dfd8dba24
parent a5839317aa5b41e7bc99ecae7405459bbcbff8a7
Author: Sergey M․ <dstftw@gmail.com>
Date:   Fri, 10 Jul 2015 21:53:38 +0600

[vodlocker] Use `_form_hidden_inputs`

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

diff --git a/youtube_dl/extractor/vodlocker.py b/youtube_dl/extractor/vodlocker.py @@ -28,12 +28,7 @@ class VodlockerIE(InfoExtractor): video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) - 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': self._sleep(3, video_id) # they do detect when requests happen too fast!