mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-10-29 09:26:20 -07:00 
			
		
		
		
	[gorillavid] Use _form_hidden_inputs
				
					
				
			This commit is contained in:
		| @@ -78,12 +78,7 @@ class GorillaVidIE(InfoExtractor): | |||||||
|         if re.search(self._FILE_NOT_FOUND_REGEX, webpage) is not None: |         if re.search(self._FILE_NOT_FOUND_REGEX, webpage) is not None: | ||||||
|             raise ExtractorError('Video %s does not exist' % video_id, expected=True) |             raise ExtractorError('Video %s does not exist' % video_id, expected=True) | ||||||
|  |  | ||||||
|         fields = dict(re.findall(r'''(?x)<input\s+ |         fields = self._form_hidden_inputs(webpage) | ||||||
|             type="hidden"\s+ |  | ||||||
|             name="([^"]+)"\s+ |  | ||||||
|             (?:id="[^"]+"\s+)? |  | ||||||
|             value="([^"]*)" |  | ||||||
|             ''', webpage)) |  | ||||||
|  |  | ||||||
|         if fields['op'] == 'download1': |         if fields['op'] == 'download1': | ||||||
|             countdown = int_or_none(self._search_regex( |             countdown = int_or_none(self._search_regex( | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user