eaf-base-api 3.3.4__tar.gz → 3.3.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eaf_base_api
3
- Version: 3.3.4
3
+ Version: 3.3.5
4
4
  Summary: A base API for EchterAlsFake's Porn APIs
5
5
  Author: Johannes Habel
6
6
  Author-email: Johannes Habel <EchterAlsFake@proton.me>
@@ -488,9 +488,9 @@ class BaseCore:
488
488
  if self.configuration.dns_over_https:
489
489
  curl_options[CurlOpt.DOH_URL] = str(self.configuration.dns_over_https).encode("utf-8")
490
490
 
491
- proxies = None
492
- if self.configuration.proxies:
493
- proxies = self.configuration.proxies
491
+ proxy = None
492
+ if self.configuration.proxy:
493
+ proxy = self.configuration.proxy
494
494
 
495
495
  if self.configuration.max_bandwidth_mb is not None and self.configuration.max_bandwidth_mb > 0:
496
496
  global_limit_bytes = int(self.configuration.max_bandwidth_mb * 1024 * 1024)
@@ -511,7 +511,8 @@ class BaseCore:
511
511
  p_auth = (u, p)
512
512
 
513
513
  self.session = cast(Any, AsyncSession)(
514
- proxies=proxies,
514
+ interface=self.configuration.interface,
515
+ proxy=proxy,
515
516
  timeout=self.configuration.timeout,
516
517
  verify=verify,
517
518
  impersonate=impersonation,
@@ -18,7 +18,7 @@ class RuntimeConfig:
18
18
  self.request_delay: int = 0
19
19
  self.timeout: int = 20
20
20
  self.max_bandwidth_mb: float| None = None # Set speed limit in megabytes per second e.g, 2.0, 3.5 etc...
21
- self.proxies: Dict[str, str] | None = None
21
+ self.proxy = None
22
22
  self.http_version: str = "v2" # "v3 = HTTP/3.0, v2 = HTTP/2.0, v1 = HTTP/1.1
23
23
  self.dns_over_https: str | None = None
24
24
  self.impersonation: str = "chrome"
@@ -31,6 +31,7 @@ class RuntimeConfig:
31
31
  self.max_workers_download: int = 20
32
32
  self.videos_concurrency: int = 5
33
33
  self.pages_concurrency: int = 2
34
+ self.interface: str | None = None # IP Address of the network interface you want to bind to
34
35
 
35
36
 
36
37
  @dataclass
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "eaf_base_api"
7
- version = "3.3.4"
7
+ version = "3.3.5"
8
8
  description = "A base API for EchterAlsFake's Porn APIs"
9
9
  readme = { file = "README.md", content-type = "text/markdown" }
10
10
  requires-python = ">=3.12"
File without changes
File without changes