eaf-base-api 4.2.3__tar.gz → 4.2.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: 4.2.3
3
+ Version: 4.2.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>
@@ -36,7 +36,8 @@ class ContextLogger(logging.LoggerAdapter):
36
36
  "url": active_url or "-"}
37
37
  context.update(kwargs.get("extra") or {})
38
38
  kwargs["extra"] = context
39
- return f"[class={context['class_name']} url={context['url']}] {msg}", kwargs
39
+ prefix = f"[class={context['class_name']} url={context['url']}]".replace("%", "%%")
40
+ return f"{prefix} {msg}", kwargs
40
41
 
41
42
 
42
43
  def get_logger(name: str, owner: object | None = None) -> ContextLogger:
@@ -7,6 +7,7 @@ from functools import wraps
7
7
 
8
8
  from base_api.modules import errors
9
9
  from base_api.modules.logger import class_name, get_logger, log_context
10
+ from base_api.modules.static_functions import strip_title
10
11
  from base_api.modules.urls import same_site_url
11
12
 
12
13
 
@@ -90,7 +91,8 @@ def prepare_download_config(configuration, title: str | None):
90
91
  # own attributes (path, stream URL, default callback) are changed.
91
92
  result = copy.copy(configuration)
92
93
  if not result.no_title:
93
- result.path = os.path.join(result.path, f"{title}.mp4")
94
+ clean_title = strip_title(title) if title else "video"
95
+ result.path = os.path.join(result.path, f"{clean_title}.mp4")
94
96
  return result
95
97
 
96
98
 
@@ -1,10 +1,10 @@
1
1
  [build-system]
2
- requires = ["uv_build>=0.9.30,<0.10.0"]
2
+ requires = ["uv_build>=0.13.0,<0.14.0"]
3
3
  build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "eaf_base_api"
7
- version = "4.2.3"
7
+ version = "4.2.5"
8
8
  description = "A base API for EchterAlsFake's Porn APIs"
9
9
  requires-python = ">=3.12"
10
10
  license = "AGPL-3.0-or-later"
@@ -1,10 +1,10 @@
1
1
  [build-system]
2
- requires = ["uv_build>=0.9.30,<0.10.0"]
2
+ requires = ["uv_build>=0.13.0,<0.14.0"]
3
3
  build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "eaf_base_api"
7
- version = "4.2.3"
7
+ version = "4.2.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