aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-07-10 21:56:41 +0600
committerSergey M․ <dstftw@gmail.com>2015-07-10 21:56:41 +0600
commit46f0f500163f64ed8276466667d6733e036bfa2d (patch)
treea6f7db8333b404830d8b267977c27ef82b47793e /youtube_dl
parentb8070dbbd72fa24fb4c0b7973bf547825a0cfed3 (diff)
[primesharetv] Use `_form_hidden_inputs`
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/primesharetv.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/youtube_dl/extractor/primesharetv.py b/youtube_dl/extractor/primesharetv.py
index 01cc3d9ea..94c9fb2cb 100644
--- a/youtube_dl/extractor/primesharetv.py
+++ b/youtube_dl/extractor/primesharetv.py
@@ -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,