diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-07-10 21:53:38 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-07-10 21:53:38 +0600 |
commit | 2688176c776a2d80c6a4ba85f6e2d07dfd8dba24 (patch) | |
tree | d3363bc2d6e7d426189791914fabd1027da80206 /youtube_dl/extractor | |
parent | a5839317aa5b41e7bc99ecae7405459bbcbff8a7 (diff) |
[vodlocker] Use `_form_hidden_inputs`
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/vodlocker.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/youtube_dl/extractor/vodlocker.py b/youtube_dl/extractor/vodlocker.py index 1c0966a79..431f4e2e3 100644 --- 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! |