From: Christoph Döpmann Date: Sat, 24 Oct 2015 09:35:41 +0000 (+0200) Subject: [spiegeltv] Fix Accept-Encoding issue (server chokes on gzip) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=0198807ef95338bec69cfdcd67249c007e4d4141;p=youtube-dl [spiegeltv] Fix Accept-Encoding issue (server chokes on gzip) --- diff --git a/youtube_dl/extractor/spiegeltv.py b/youtube_dl/extractor/spiegeltv.py index 27f4033c5..a85305281 100644 --- a/youtube_dl/extractor/spiegeltv.py +++ b/youtube_dl/extractor/spiegeltv.py @@ -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({