File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 7
7
python -m pip install --disable-pip-version-check --upgrade pip setuptools
8
8
python -m pip install --upgrade -r dev-requirements.txt
9
9
python -m pip install pycountry
10
+ # https://github.com/streamlink/streamlink/issues/4021
11
+ python -m pip install brotli
10
12
# temporary windows python 3.10 fix for missing 'lxml 4.6.3' wheel
11
13
# https://github.com/streamlink/streamlink/issues/3971
12
14
python -m pip install " https://github.com/back-to/tmp_wheel/raw/b237059b18110ca298e191340eebb6eb0aef8827/lxml-4.6.3-cp310-cp310-win_amd64.whl; \
Original file line number Diff line number Diff line change 1
1
import unittest
2
2
3
+ # noinspection PyUnresolvedReferences
4
+ from requests .utils import DEFAULT_ACCEPT_ENCODING
5
+
3
6
from streamlink import Streamlink
4
7
from streamlink .stream import AkamaiHDStream
5
8
from streamlink .stream import HDSStream
@@ -31,7 +34,7 @@ def test_http_stream(self):
31
34
"headers" : {
32
35
"User-Agent" : "Test" ,
33
36
"Accept" : "*/*" ,
34
- "Accept-Encoding" : "gzip, deflate" ,
37
+ "Accept-Encoding" : DEFAULT_ACCEPT_ENCODING ,
35
38
"Connection" : "keep-alive" ,
36
39
}},
37
40
stream .__json__ ()
@@ -49,7 +52,7 @@ def test_hls_stream(self):
49
52
"headers" : {
50
53
"User-Agent" : "Test" ,
51
54
"Accept" : "*/*" ,
52
- "Accept-Encoding" : "gzip, deflate" ,
55
+ "Accept-Encoding" : DEFAULT_ACCEPT_ENCODING ,
53
56
"Connection" : "keep-alive" ,
54
57
}
55
58
},
@@ -64,7 +67,7 @@ def test_hls_stream(self):
64
67
"headers" : {
65
68
"User-Agent" : "Test" ,
66
69
"Accept" : "*/*" ,
67
- "Accept-Encoding" : "gzip, deflate" ,
70
+ "Accept-Encoding" : DEFAULT_ACCEPT_ENCODING ,
68
71
"Connection" : "keep-alive" ,
69
72
},
70
73
"master" : master
You can’t perform that action at this time.
0 commit comments