0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-03 03:57:26 +00:00

[played] Use _form_hidden_inputs

This commit is contained in:
Sergey M․ 2015-07-10 21:57:29 +06:00
parent 46f0f50016
commit 01b89d5682

View file

@ -38,9 +38,7 @@ def _real_extract(self, url):
if m_error:
raise ExtractorError(m_error.group('msg'), expected=True)
fields = re.findall(
r'type="hidden" name="([^"]+)"\s+value="([^"]+)">', orig_webpage)
data = dict(fields)
data = self._form_hidden_inputs(orig_webpage)
self._sleep(2, video_id)