aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/spiegeltv.py
diff options
context:
space:
mode:
authorChristoph Döpmann <cdoepmann@users.noreply.github.com>2015-10-24 11:35:41 +0200
committerSergey M․ <dstftw@gmail.com>2015-10-24 16:21:14 +0600
commit0198807ef95338bec69cfdcd67249c007e4d4141 (patch)
treed34fe2baf002c7157c0c6cb5519e0bf6a7775744 /youtube_dl/extractor/spiegeltv.py
parent6856139705aea86ab1f950c08e605dd47f839be0 (diff)
[spiegeltv] Fix Accept-Encoding issue (server chokes on gzip)
Diffstat (limited to 'youtube_dl/extractor/spiegeltv.py')
-rw-r--r--youtube_dl/extractor/spiegeltv.py4
1 files changed, 4 insertions, 0 deletions
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({