v0.6.23: Fix Linkkf download - CDP Headers wrapper, yt-dlp --add-header support

- Fix zendriver_daemon CDP Headers bug (wrap dict with zd.cdp.network.Headers())
- Fix HTML entity decoding in iframe URLs (use html.unescape())
- Simplify GDM source_type to always use 'linkkf'
This commit is contained in:
2026-01-08 01:29:36 +09:00
parent d1866111c7
commit 24217712a6
7 changed files with 181 additions and 79 deletions

View File

@@ -290,13 +290,17 @@ class LogicOhli24(AnimeModuleBase):
return False
@classmethod
def fetch_via_daemon(cls, url: str, timeout: int = 30) -> dict:
"""데몬을 통한 HTML 페칭 (빠름)"""
def fetch_via_daemon(cls, url: str, timeout: int = 30, headers: dict = None) -> dict:
"""데몬을 통한 HTML 페칭 (빠름, 헤더 지원)"""
try:
import requests
payload = {"url": url, "timeout": timeout}
if headers:
payload["headers"] = headers
resp = requests.post(
f"http://127.0.0.1:{cls.zendriver_daemon_port}/fetch",
json={"url": url, "timeout": timeout},
json=payload,
timeout=timeout + 5
)
if resp.status_code == 200: