eaf_base_api 3.2.2__tar.gz → 3.2.4__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.2.2
3
+ Version: 3.2.4
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>
@@ -1002,6 +1002,10 @@ a new Python file, import only m3u8 and see what error you get.
1002
1002
 
1003
1003
  # Resolve master content
1004
1004
  assert m3u8 is not None
1005
+
1006
+ if asyncio.iscoroutine(m3u8_url):
1007
+ m3u8_url = await m3u8_url
1008
+
1005
1009
  if m3u8_url.lstrip().startswith("#EXTM3U"):
1006
1010
  master = m3u8.loads(m3u8_url)
1007
1011
  self.logger.debug("Resolved inline/custom m3u8 master content.")
@@ -1202,6 +1206,10 @@ a new Python file, import only m3u8 and see what error you get.
1202
1206
  self.logger.debug("download: no callback provided, using default text progress bar")
1203
1207
 
1204
1208
  m3u8_url = getattr(video, "m3u8_base_url", None)
1209
+
1210
+ if asyncio.iscoroutine(m3u8_url):
1211
+ m3u8_url = await m3u8_url # For youporn api
1212
+
1205
1213
  self.logger.info(
1206
1214
  """
1207
1215
  Download requested: quality=%s path=%s remux=%s max_workers=%s
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "eaf_base_api"
7
- version = "3.2.2"
7
+ version = "3.2.4"
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.10"
File without changes
File without changes