[dcn] make m3u8 formats extraction non fatal
[youtube-dl] / youtube_dl / extractor / gorillavid.py
index 6147596e4c5d082d54f975b7428a400679b9dc32..f006f0cb105dc9d7b0c1f495dbcd4c840597858a 100644 (file)
@@ -78,12 +78,7 @@ class GorillaVidIE(InfoExtractor):
         if re.search(self._FILE_NOT_FOUND_REGEX, webpage) is not None:
             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._hidden_inputs(webpage)
 
         if fields['op'] == 'download1':
             countdown = int_or_none(self._search_regex(