mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[xfileshare] Modernize and pass referrer
This commit is contained in:
		| @@ -130,12 +130,12 @@ class XFileShareIE(InfoExtractor): | ||||
|             if countdown: | ||||
|                 self._sleep(countdown, video_id) | ||||
|  | ||||
|             post = urlencode_postdata(fields) | ||||
|  | ||||
|             req = sanitized_Request(url, post) | ||||
|             req.add_header('Content-type', 'application/x-www-form-urlencoded') | ||||
|  | ||||
|             webpage = self._download_webpage(req, video_id, 'Downloading video page') | ||||
|             webpage = self._download_webpage( | ||||
|                 url, video_id, 'Downloading video page', | ||||
|                 data=urlencode_postdata(fields), headers={ | ||||
|                     'Referer': url, | ||||
|                     'Content-type': 'application/x-www-form-urlencoded', | ||||
|                 }) | ||||
|  | ||||
|         title = (self._search_regex( | ||||
|             (r'style="z-index: [0-9]+;">([^<]+)</span>', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․