mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[hostingbulk] Use _form_hidden_inputs
				
					
				
			This commit is contained in:
		| @@ -58,11 +58,7 @@ class HostingBulkIE(InfoExtractor): | ||||
|             r'<img src="([^"]+)".+?class="pic"', | ||||
|             webpage, 'thumbnail', fatal=False) | ||||
|  | ||||
|         fields = dict(re.findall(r'''(?x)<input\s+ | ||||
|             type="hidden"\s+ | ||||
|             name="([^"]+)"\s+ | ||||
|             value="([^"]*)" | ||||
|             ''', webpage)) | ||||
|         fields = self._form_hidden_inputs(webpage) | ||||
|  | ||||
|         request = compat_urllib_request.Request(url, urlencode_postdata(fields)) | ||||
|         request.add_header('Content-type', 'application/x-www-form-urlencoded') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․