mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +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.country_code = cc
|
||||
self.request_timeout = timeout
|
||||
|
||||
if timeout > 0:
|
||||
self.request_timeout = timeout
|
||||
else:
|
||||
self.request_timeout = None
|
||||
|
||||
def update_egs_params(self, egs_params):
|
||||
# update user-agent
|
||||
|
|
Loading…
Reference in a new issue