mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[api] Treat timeout <= 0 as no timeout
This commit is contained in:
parent
013792f7b9
commit
3fed7d2614
|
@ -47,7 +47,11 @@ class EPCAPI:
|
||||||
|
|
||||||
self.language_code = lc
|
self.language_code = lc
|
||||||
self.country_code = cc
|
self.country_code = cc
|
||||||
|
|
||||||
|
if timeout > 0:
|
||||||
self.request_timeout = timeout
|
self.request_timeout = timeout
|
||||||
|
else:
|
||||||
|
self.request_timeout = None
|
||||||
|
|
||||||
def update_egs_params(self, egs_params):
|
def update_egs_params(self, egs_params):
|
||||||
# update user-agent
|
# update user-agent
|
||||||
|
|
Loading…
Reference in a new issue