1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-06-25 21:29:35 +00:00

[primesharetv] Use _form_hidden_inputs

This commit is contained in:
Sergey M․ 2015-07-10 21:56:41 +06:00
parent b8070dbbd7
commit 46f0f50016

View file

@ -31,12 +31,7 @@ class PrimeShareTVIE(InfoExtractor):
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,