Update script.js
Browse files
script.js
CHANGED
|
@@ -190,12 +190,12 @@ async function parseContent() {
|
|
| 190 |
showDebugInfo(`正在解析中: ${url}`);
|
| 191 |
let data, response;
|
| 192 |
try {
|
| 193 |
-
const apiUrl1 = `https://api.kxzjoker.cn/api/
|
| 194 |
response = await retryFetch(apiUrl1);
|
| 195 |
data = await response.json();
|
| 196 |
} catch (error) {
|
| 197 |
showDebugInfo('主接口失败,尝试备用接口...');
|
| 198 |
-
const apiUrl2 = `https://api.kxzjoker.cn/api/
|
| 199 |
response = await retryFetch(apiUrl2);
|
| 200 |
data = await response.json();
|
| 201 |
}
|
|
|
|
| 190 |
showDebugInfo(`正在解析中: ${url}`);
|
| 191 |
let data, response;
|
| 192 |
try {
|
| 193 |
+
const apiUrl1 = `https://api.kxzjoker.cn/api/jiexi_video_2?url=${encodeURIComponent(url)}`;
|
| 194 |
response = await retryFetch(apiUrl1);
|
| 195 |
data = await response.json();
|
| 196 |
} catch (error) {
|
| 197 |
showDebugInfo('主接口失败,尝试备用接口...');
|
| 198 |
+
const apiUrl2 = `https://api.kxzjoker.cn/api/jiexi_video?url=${encodeURIComponent(url)}`;
|
| 199 |
response = await retryFetch(apiUrl2);
|
| 200 |
data = await response.json();
|
| 201 |
}
|