mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[spiegeltv] Fix Accept-Encoding issue (server chokes on gzip)
This commit is contained in:
		 Christoph Döpmann
					Christoph Döpmann
				
			
				
					committed by
					
						 Sergey M․
						Sergey M․
					
				
			
			
				
	
			
			
			 Sergey M․
						Sergey M․
					
				
			
						parent
						
							6856139705
						
					
				
				
					commit
					0198807ef9
				
			| @@ -83,6 +83,10 @@ class SpiegeltvIE(InfoExtractor): | ||||
|                     preference=1,  # Prefer hls since it allows to workaround georestriction | ||||
|                     m3u8_id='hls', fatal=False) | ||||
|                 if m3u8_formats is not False: | ||||
|                     for m3u8_format in m3u8_formats: | ||||
|                         m3u8_format['http_headers'] = { | ||||
|                             'Accept-Encoding': 'deflate', # gzip causes trouble on the server side | ||||
|                         } | ||||
|                     formats.extend(m3u8_formats) | ||||
|             else: | ||||
|                 formats.append({ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user