浏览代码

[gorillavid] Use `_form_hidden_inputs`

Sergey M․ 10 年之前
父节点
当前提交
1c0163a5cc
共有 1 个文件被更改,包括 1 次插入6 次删除
  1. 1 6
      youtube_dl/extractor/gorillavid.py

+ 1 - 6
youtube_dl/extractor/gorillavid.py

@@ -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._form_hidden_inputs(webpage)
 
         if fields['op'] == 'download1':
             countdown = int_or_none(self._search_regex(