mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-23 06:42:21 +00:00
[vodlocker] Use _form_hidden_inputs
This commit is contained in:
parent
a5839317aa
commit
2688176c77
@ -28,12 +28,7 @@ class VodlockerIE(InfoExtractor):
|
|||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
fields = dict(re.findall(r'''(?x)<input\s+
|
fields = self._form_hidden_inputs(webpage)
|
||||||
type="hidden"\s+
|
|
||||||
name="([^"]+)"\s+
|
|
||||||
(?:id="[^"]+"\s+)?
|
|
||||||
value="([^"]*)"
|
|
||||||
''', webpage))
|
|
||||||
|
|
||||||
if fields['op'] == 'download1':
|
if fields['op'] == 'download1':
|
||||||
self._sleep(3, video_id) # they do detect when requests happen too fast!
|
self._sleep(3, video_id) # they do detect when requests happen too fast!
|
||||||
|
Loading…
Reference in New Issue
Block a user