mirror of
				https://github.com/derrod/legendary.git
				synced 2025-11-03 18:16:06 +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