From 0a811fdfc18edec1abe620ea91cdc836df1ff6ce Mon Sep 17 00:00:00 2001 From: projectdx Date: Thu, 8 Jan 2026 01:34:28 +0900 Subject: [PATCH] fix: Handle Zendriver HTML-wrapped JSON responses in get_anime_info - Extract JSON from
 tag when Zendriver returns HTML-wrapped response
- Add guard to prevent TypeError when items_xpath is None after JSON parsing fails
- Improves error logging for debugging failed API responses
---
 mod_linkkf.py | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/mod_linkkf.py b/mod_linkkf.py
index e827ee8..990b3c2 100644
--- a/mod_linkkf.py
+++ b/mod_linkkf.py
@@ -1160,8 +1160,19 @@ class LogicLinkkf(AnimeModuleBase):
             response_data = LogicLinkkf.get_html(url, timeout=10)
             
             # JSON 응답 처리 (Top View 포함)
+            # Zendriver returns HTML-wrapped JSON: ...
JSON
... + json_text = response_data + if response_data.strip().startswith('