mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
select_quality: this should be get and not pop
This commit is contained in:
parent
aff4a0716a
commit
fbb511981e
@ -180,7 +180,7 @@ def select_quality(options, streams):
|
||||
http = HTTP(options)
|
||||
# Test if the wanted stream is available. If not try with the second best and so on.
|
||||
for w in wanted:
|
||||
res = http.get(stream_hash[w].url, cookies=stream_hash[w].kwargs.pop("cookies", None))
|
||||
res = http.get(stream_hash[w].url, cookies=stream_hash[w].kwargs.get("cookies", None))
|
||||
if res is not None and res.status_code < 404:
|
||||
return stream_hash[w]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user