mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[utils] YoutubeDLHandler: don't use 'Youtubedl-user-agent' for overriding the default user agent
Setting the 'User-Agent' header is enough
This commit is contained in:
		| @@ -95,7 +95,7 @@ class AtresPlayerIE(SubtitlesInfoExtractor): | ||||
|         for fmt in ['windows', 'android_tablet']: | ||||
|             request = compat_urllib_request.Request( | ||||
|                 self._URL_VIDEO_TEMPLATE.format(fmt, episode_id, timestamp_shifted, token)) | ||||
|             request.add_header('Youtubedl-user-agent', self._USER_AGENT) | ||||
|             request.add_header('User-Agent', self._USER_AGENT) | ||||
|  | ||||
|             fmt_json = self._download_json( | ||||
|                 request, video_id, 'Downloading %s video JSON' % fmt) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jaime Marquínez Ferrándiz
					Jaime Marquínez Ferrándiz