]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[primesharetv] Use `_form_hidden_inputs`
authorSergey M․ <dstftw@gmail.com>
Fri, 10 Jul 2015 15:56:41 +0000 (21:56 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 10 Jul 2015 15:56:41 +0000 (21:56 +0600)
youtube_dl/extractor/primesharetv.py

index 01cc3d9ea3ff845476a7f7b306c3bfee25078b96..94c9fb2cb29c33cb4d7353d468f36fec32e75593 100644 (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,