eaf_base_api 2.5.2__tar.gz → 2.5.3__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: 2.5.2
3
+ Version: 2.5.3
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>
@@ -763,10 +763,11 @@ class BaseCore:
763
763
  raise KillSwitch("CRITICAL PROXY ERROR, CHECK LOGS!")
764
764
 
765
765
  def initialize_session(self):
766
- ctx = ssl.create_default_context(cafile=certifi.where())
767
- if not self.config.verify_ssl:
768
- ctx.check_hostname = False
769
- ctx.verify_mode = ssl.CERT_NONE
766
+ if not self.config.ssl_context:
767
+ ctx = ssl.create_default_context(cafile=certifi.where())
768
+ if not self.config.verify_ssl:
769
+ ctx.check_hostname = False
770
+ ctx.verify_mode = ssl.CERT_NONE
770
771
 
771
772
  if not http2_possible and self.config.use_http2:
772
773
  self.logger.error(f"""
@@ -14,6 +14,7 @@ class RuntimeConfig:
14
14
  self.max_workers_download = 20
15
15
  self.videos_concurrency = 5
16
16
  self.pages_concurrency = 2
17
+ self.ssl_context = None # Custom SSL context if you want
17
18
 
18
19
 
19
20
  # Singleton instance needed for my Porn Fetch project
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "eaf_base_api"
7
- version = "2.5.2"
7
+ version = "2.5.3"
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.9"
File without changes
File without changes