[spiegeltv] Fix Accept-Encoding issue (server chokes on gzip)
authorChristoph Döpmann <cdoepmann@users.noreply.github.com>
Sat, 24 Oct 2015 09:35:41 +0000 (11:35 +0200)
committerSergey M․ <dstftw@gmail.com>
Sat, 24 Oct 2015 10:21:14 +0000 (16:21 +0600)
youtube_dl/extractor/spiegeltv.py

index 27f4033c547a9700db6af520c4fe4a957e3755c0..a85305281fca44a49c3b67bc99ba6fbee327e340 100644 (file)
@@ -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({