eaf-base-api 2.5.0__tar.gz → 2.5.1__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.0
3
+ Version: 2.5.1
4
4
  Summary: A base API for EchterAlsFake's Porn APIs
5
5
  Author-email: Johannes Habel <EchterAlsFake@proton.me>
6
6
  License: LGPLv3
@@ -804,6 +804,7 @@ class BaseCore:
804
804
  method: str = "GET",
805
805
  headers: Optional[Dict[str, str]] = None,
806
806
  json: Optional[Dict] = None,
807
+ params: Optional[Dict] = None,
807
808
  ) -> Union[bytes, str, httpx.Response]:
808
809
  """
809
810
  Fetch content with retries, optional caching, proxy support, and bandwidth limiting.
@@ -858,7 +859,8 @@ class BaseCore:
858
859
  timeout=req_timeout,
859
860
  follow_redirects=allow_redirects,
860
861
  data=data,
861
- json=json
862
+ json=json,
863
+ params=params,
862
864
  )
863
865
 
864
866
  last_response = response
@@ -909,6 +911,9 @@ class BaseCore:
909
911
 
910
912
  return content
911
913
 
914
+ elif status == 204:
915
+ return response
916
+
912
917
  # 403 handling: try a UA switch once, then give up
913
918
  if status == 403:
914
919
  if attempt == 0 or attempt == 1:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eaf_base_api
3
- Version: 2.5.0
3
+ Version: 2.5.1
4
4
  Summary: A base API for EchterAlsFake's Porn APIs
5
5
  Author-email: Johannes Habel <EchterAlsFake@proton.me>
6
6
  License: LGPLv3
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "eaf_base_api"
7
- version = "2.5.0"
7
+ version = "2.5.1"
8
8
  description = "A base API for EchterAlsFake's Porn APIs"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.6"
File without changes
File without changes
File without changes
File without changes