mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
[primesharetv] Use _form_hidden_inputs
This commit is contained in:
parent
b8070dbbd7
commit
46f0f50016
1 changed files with 1 additions and 6 deletions
|
@ -31,12 +31,7 @@ def _real_extract(self, url):
|
|||
if '>File not exist<' in webpage:
|
||||
raise ExtractorError('Video %s does not exist' % video_id, expected=True)
|
||||
|
||||
fields = dict(re.findall(r'''(?x)<input\s+
|
||||
type="hidden"\s+
|
||||
name="([^"]+)"\s+
|
||||
(?:id="[^"]+"\s+)?
|
||||
value="([^"]*)"
|
||||
''', webpage))
|
||||
fields = self._form_hidden_inputs(webpage)
|
||||
|
||||
headers = {
|
||||
'Referer': url,
|
||||
|
|
Loading…
Reference in a new issue