mirror of https://github.com/searx/searx
fix yggtorrent
This commit is contained in:
parent
fb2c9d9652
commit
a5ffe611ad
|
@ -39,7 +39,7 @@ cookies = dict()
|
||||||
def init(engine_settings=None):
|
def init(engine_settings=None):
|
||||||
global cookies # pylint: disable=global-variable-not-assigned
|
global cookies # pylint: disable=global-variable-not-assigned
|
||||||
# initial cookies
|
# initial cookies
|
||||||
resp = http_get(url, follow_redirects=False)
|
resp = http_get(url)
|
||||||
if resp.ok:
|
if resp.ok:
|
||||||
for r in resp.history:
|
for r in resp.history:
|
||||||
cookies.update(r.cookies)
|
cookies.update(r.cookies)
|
||||||
|
|
Loading…
Reference in New Issue