Add support for more proxies (#1859)
This commit is contained in:
@@ -27,6 +27,9 @@ class ProxyLocation(StrEnum):
|
||||
RESIDENTIAL_JP = "RESIDENTIAL_JP"
|
||||
RESIDENTIAL_FR = "RESIDENTIAL_FR"
|
||||
RESIDENTIAL_DE = "RESIDENTIAL_DE"
|
||||
RESIDENTIAL_NZ = "RESIDENTIAL_NZ"
|
||||
RESIDENTIAL_ZA = "RESIDENTIAL_ZA"
|
||||
RESIDENTIAL_AR = "RESIDENTIAL_AR"
|
||||
RESIDENTIAL_ISP = "RESIDENTIAL_ISP"
|
||||
NONE = "NONE"
|
||||
|
||||
@@ -74,6 +77,15 @@ def get_tzinfo_from_proxy(proxy_location: ProxyLocation) -> ZoneInfo | None:
|
||||
if proxy_location == ProxyLocation.RESIDENTIAL_DE:
|
||||
return ZoneInfo("Europe/Berlin")
|
||||
|
||||
if proxy_location == ProxyLocation.RESIDENTIAL_NZ:
|
||||
return ZoneInfo("Pacific/Auckland")
|
||||
|
||||
if proxy_location == ProxyLocation.RESIDENTIAL_ZA:
|
||||
return ZoneInfo("Africa/Johannesburg")
|
||||
|
||||
if proxy_location == ProxyLocation.RESIDENTIAL_AR:
|
||||
return ZoneInfo("America/Argentina/Buenos_Aires")
|
||||
|
||||
if proxy_location == ProxyLocation.RESIDENTIAL_ISP:
|
||||
return ZoneInfo("America/New_York")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user