Skip to content

Commit c55184f

Browse files
author
Taois
committed
fix: 夸克by 秋秋
1 parent 0bf8c0c commit c55184f

File tree

8 files changed

+509
-187
lines changed

8 files changed

+509
-187
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,4 @@ dist
158158
/data/temp/
159159
/scripts/mjs/index.db
160160
/scripts/test/rsa-test.json
161+
/apps/salary/

spider/catvod/蓝莓聚合短剧[B].js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spider/js/push_agent.js

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -299,22 +299,32 @@ var rule = {
299299
log("夸克网盘解析开始")
300300
const down = await Quark.getDownload(ids[0], ids[1], ids[2], ids[3], true);
301301
const headers = {
302-
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
303-
'origin': 'https://pan.quark.cn',
304-
'referer': 'https://pan.quark.cn/',
305-
'Cookie': Quark.cookie
302+
// 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 QuarkPC/4.5.5.535 quark-cloud-drive/2.5.40 Channel/pckk_other_ch',
303+
// 'origin': 'https://pan.quark.cn',
304+
// 'referer': 'https://pan.quark.cn/',
305+
'Cookie': ENV.get('quark_cookie')
306306
};
307-
urls.push("原画", down.download_url + '#fastPlayMode##threads=10#');
308-
urls.push("原代服", mediaProxyUrl + `?thread=${ENV.get('thread') || 6}&form=urlcode&randUa=1&url=` + encodeURIComponent(down.download_url) + '&header=' + encodeURIComponent(JSON.stringify(headers)));
309-
if (ENV.get('play_local_proxy_type', '1') === '2') {
310-
urls.push("原代本", `http://127.0.0.1:7777/?thread=${ENV.get('thread') || 6}&form=urlcode&randUa=1&url=` + encodeURIComponent(down.download_url) + '&header=' + encodeURIComponent(JSON.stringify(headers)));
311-
} else {
312-
urls.push("原代本", `http://127.0.0.1:5575/proxy?thread=${ENV.get('thread') || 6}&chunkSize=256&url=` + encodeURIComponent(down.download_url));
313-
}
307+
down.forEach((t) => {
308+
if(t.url!==undefined){
309+
urls.push(t.name, t.url+ "#isVideo=true##fastPlayMode##threads=20#")
310+
urls.push("猫"+t.name, `http://127.0.0.1:5575/proxy?thread=${ENV.get('thread') || 6}&chunkSize=256&url=` + encodeURIComponent(t.url));
311+
}
312+
});
314313
const transcoding = (await Quark.getLiveTranscoding(ids[0], ids[1], ids[2], ids[3])).filter((t) => t.accessable);
315314
transcoding.forEach((t) => {
316-
urls.push(t.resolution === 'low' ? "流畅" : t.resolution === 'high' ? "高清" : t.resolution === 'super' ? "超清" : t.resolution, t.video_info.url)
315+
urls.push(t.resolution === 'low' ? "流畅" : t.resolution === 'high' ? "高清" : t.resolution === 'super' ? "超清" : t.resolution, t.video_info.url+ "#isVideo=true##fastPlayMode##threads=20#")
317316
});
317+
// urls.push("原画", down.download_url + '#fastPlayMode##threads=10#');
318+
// urls.push("原代服", mediaProxyUrl + `?thread=${ENV.get('thread') || 6}&form=urlcode&randUa=1&url=` + encodeURIComponent(down.download_url) + '&header=' + encodeURIComponent(JSON.stringify(headers)));
319+
// if (ENV.get('play_local_proxy_type', '1') === '2') {
320+
// urls.push("原代本", `http://127.0.0.1:7777/?thread=${ENV.get('thread') || 6}&form=urlcode&randUa=1&url=` + encodeURIComponent(down.download_url) + '&header=' + encodeURIComponent(JSON.stringify(headers)));
321+
// } else {
322+
// urls.push("原代本", `http://127.0.0.1:5575/proxy?thread=${ENV.get('thread') || 6}&chunkSize=256&url=` + encodeURIComponent(down.download_url));
323+
// }
324+
// const transcoding = (await Quark.getLiveTranscoding(ids[0], ids[1], ids[2], ids[3])).filter((t) => t.accessable);
325+
// transcoding.forEach((t) => {
326+
// urls.push(t.resolution === 'low' ? "流畅" : t.resolution === 'high' ? "高清" : t.resolution === 'super' ? "超清" : t.resolution, t.video_info.url)
327+
// });
318328
return {
319329
parse: 0,
320330
url: urls,

spider/js/玩偶哥哥DM[盘].js

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -297,31 +297,40 @@ var rule = {
297297
let UCTranscodingCache = {};
298298
let downUrl = ''
299299
if (flag.startsWith('Quark-')) {
300-
console.log("夸克网盘解析开始")
300+
log("夸克网盘解析开始")
301301
const down = await Quark.getDownload(ids[0], ids[1], ids[2], ids[3], true);
302302
const headers = {
303-
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
304-
'origin': 'https://pan.quark.cn',
305-
'referer': 'https://pan.quark.cn/',
306-
'Cookie': Quark.cookie
303+
// 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 QuarkPC/4.5.5.535 quark-cloud-drive/2.5.40 Channel/pckk_other_ch',
304+
// 'origin': 'https://pan.quark.cn',
305+
// 'referer': 'https://pan.quark.cn/',
306+
'Cookie': ENV.get('quark_cookie')
307307
};
308-
309-
urls.push("原画", down.download_url + '#fastPlayMode##threads=10#')
310-
urls.push("原代服", mediaProxyUrl + `?thread=${ENV.get('thread') || 6}&form=urlcode&randUa=1&url=` + encodeURIComponent(down.download_url) + '&header=' + encodeURIComponent(JSON.stringify(headers)))
311-
if (ENV.get('play_local_proxy_type', '1') === '2') {
312-
urls.push("原代本", `http://127.0.0.1:7777/?thread=${ENV.get('thread') || 6}&form=urlcode&randUa=1&url=` + encodeURIComponent(down.download_url) + '&header=' + encodeURIComponent(JSON.stringify(headers)));
313-
} else {
314-
urls.push("原代本", `http://127.0.0.1:5575/proxy?thread=${ENV.get('thread') || 6}&chunkSize=256&url=` + encodeURIComponent(down.download_url));
315-
}
308+
down.forEach((t) => {
309+
if(t.url!==undefined){
310+
urls.push(t.name, t.url+ "#isVideo=true##fastPlayMode##threads=20#")
311+
urls.push("猫"+t.name, `http://127.0.0.1:5575/proxy?thread=${ENV.get('thread') || 6}&chunkSize=256&url=` + encodeURIComponent(t.url));
312+
}
313+
});
316314
const transcoding = (await Quark.getLiveTranscoding(ids[0], ids[1], ids[2], ids[3])).filter((t) => t.accessable);
317315
transcoding.forEach((t) => {
318-
urls.push(t.resolution === 'low' ? "流畅" : t.resolution === 'high' ? "高清" : t.resolution === 'super' ? "超清" : t.resolution, t.video_info.url)
316+
urls.push(t.resolution === 'low' ? "流畅" : t.resolution === 'high' ? "高清" : t.resolution === 'super' ? "超清" : t.resolution, t.video_info.url+ "#isVideo=true##fastPlayMode##threads=20#")
319317
});
320-
result["parse"] = 0;
321-
result["url"] = urls;
322-
result["danmaku"] = danmu;
323-
result["header"] = headers;
324-
return result
318+
// urls.push("原画", down.download_url + '#fastPlayMode##threads=10#');
319+
// urls.push("原代服", mediaProxyUrl + `?thread=${ENV.get('thread') || 6}&form=urlcode&randUa=1&url=` + encodeURIComponent(down.download_url) + '&header=' + encodeURIComponent(JSON.stringify(headers)));
320+
// if (ENV.get('play_local_proxy_type', '1') === '2') {
321+
// urls.push("原代本", `http://127.0.0.1:7777/?thread=${ENV.get('thread') || 6}&form=urlcode&randUa=1&url=` + encodeURIComponent(down.download_url) + '&header=' + encodeURIComponent(JSON.stringify(headers)));
322+
// } else {
323+
// urls.push("原代本", `http://127.0.0.1:5575/proxy?thread=${ENV.get('thread') || 6}&chunkSize=256&url=` + encodeURIComponent(down.download_url));
324+
// }
325+
// const transcoding = (await Quark.getLiveTranscoding(ids[0], ids[1], ids[2], ids[3])).filter((t) => t.accessable);
326+
// transcoding.forEach((t) => {
327+
// urls.push(t.resolution === 'low' ? "流畅" : t.resolution === 'high' ? "高清" : t.resolution === 'super' ? "超清" : t.resolution, t.video_info.url)
328+
// });
329+
return {
330+
parse: 0,
331+
url: urls,
332+
header: headers
333+
}
325334
}
326335
if (flag.startsWith('UC-')) {
327336
console.log("UC网盘解析开始")

spider/js_bad/团长资源[盘].js

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -269,25 +269,35 @@ var rule = {
269269
let UCTranscodingCache = {};
270270
let downUrl = ''
271271
if (flag.startsWith('Quark-')) {
272-
console.log("夸克网盘解析开始")
272+
log("夸克网盘解析开始")
273273
const down = await Quark.getDownload(ids[0], ids[1], ids[2], ids[3], true);
274274
const headers = {
275-
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
276-
'origin': 'https://pan.quark.cn',
277-
'referer': 'https://pan.quark.cn/',
278-
'Cookie': Quark.cookie
275+
// 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 QuarkPC/4.5.5.535 quark-cloud-drive/2.5.40 Channel/pckk_other_ch',
276+
// 'origin': 'https://pan.quark.cn',
277+
// 'referer': 'https://pan.quark.cn/',
278+
'Cookie': ENV.get('quark_cookie')
279279
};
280-
urls.push("原画", down.download_url + '#fastPlayMode##threads=10#')
281-
urls.push("原代服", mediaProxyUrl + `?thread=${ENV.get('thread') || 6}&form=urlcode&randUa=1&url=` + encodeURIComponent(down.download_url) + '&header=' + encodeURIComponent(JSON.stringify(headers)))
282-
if (ENV.get('play_local_proxy_type', '1') === '2') {
283-
urls.push("原代本", `http://127.0.0.1:7777/?thread=${ENV.get('thread') || 6}&form=urlcode&randUa=1&url=` + encodeURIComponent(down.download_url) + '&header=' + encodeURIComponent(JSON.stringify(headers)));
284-
} else {
285-
urls.push("原代本", `http://127.0.0.1:5575/proxy?thread=${ENV.get('thread') || 6}&chunkSize=256&url=` + encodeURIComponent(down.download_url));
286-
}
280+
down.forEach((t) => {
281+
if(t.url!==undefined){
282+
urls.push(t.name, t.url+ "#isVideo=true##fastPlayMode##threads=20#")
283+
urls.push("猫"+t.name, `http://127.0.0.1:5575/proxy?thread=${ENV.get('thread') || 6}&chunkSize=256&url=` + encodeURIComponent(t.url));
284+
}
285+
});
287286
const transcoding = (await Quark.getLiveTranscoding(ids[0], ids[1], ids[2], ids[3])).filter((t) => t.accessable);
288287
transcoding.forEach((t) => {
289-
urls.push(t.resolution === 'low' ? "流畅" : t.resolution === 'high' ? "高清" : t.resolution === 'super' ? "超清" : t.resolution, t.video_info.url)
288+
urls.push(t.resolution === 'low' ? "流畅" : t.resolution === 'high' ? "高清" : t.resolution === 'super' ? "超清" : t.resolution, t.video_info.url+ "#isVideo=true##fastPlayMode##threads=20#")
290289
});
290+
// urls.push("原画", down.download_url + '#fastPlayMode##threads=10#');
291+
// urls.push("原代服", mediaProxyUrl + `?thread=${ENV.get('thread') || 6}&form=urlcode&randUa=1&url=` + encodeURIComponent(down.download_url) + '&header=' + encodeURIComponent(JSON.stringify(headers)));
292+
// if (ENV.get('play_local_proxy_type', '1') === '2') {
293+
// urls.push("原代本", `http://127.0.0.1:7777/?thread=${ENV.get('thread') || 6}&form=urlcode&randUa=1&url=` + encodeURIComponent(down.download_url) + '&header=' + encodeURIComponent(JSON.stringify(headers)));
294+
// } else {
295+
// urls.push("原代本", `http://127.0.0.1:5575/proxy?thread=${ENV.get('thread') || 6}&chunkSize=256&url=` + encodeURIComponent(down.download_url));
296+
// }
297+
// const transcoding = (await Quark.getLiveTranscoding(ids[0], ids[1], ids[2], ids[3])).filter((t) => t.accessable);
298+
// transcoding.forEach((t) => {
299+
// urls.push(t.resolution === 'low' ? "流畅" : t.resolution === 'high' ? "高清" : t.resolution === 'super' ? "超清" : t.resolution, t.video_info.url)
300+
// });
291301
return {
292302
parse: 0,
293303
url: urls,

spider/js_bad/特下饭[盘].js

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -140,34 +140,39 @@ var rule = {
140140
let UCDownloadingCache = {};
141141
let UCTranscodingCache = {};
142142
if (flag.startsWith('Quark-')) {
143-
console.log("夸克网盘解析开始")
143+
log("夸克网盘解析开始")
144144
const down = await Quark.getDownload(ids[0], ids[1], ids[2], ids[3], true);
145145
const headers = {
146-
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
147-
'origin': 'https://pan.quark.cn',
148-
'referer': 'https://pan.quark.cn/',
149-
'Cookie': Quark.cookie
146+
// 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 QuarkPC/4.5.5.535 quark-cloud-drive/2.5.40 Channel/pckk_other_ch',
147+
// 'origin': 'https://pan.quark.cn',
148+
// 'referer': 'https://pan.quark.cn/',
149+
'Cookie': ENV.get('quark_cookie')
150150
};
151-
urls.push("原画", down.download_url + '#fastPlayMode##threads=10#')
152-
urls.push("原代服", mediaProxyUrl + `?thread=${ENV.get('thread') || 6}&form=urlcode&randUa=1&url=` + encodeURIComponent(down.download_url) + '&header=' + encodeURIComponent(JSON.stringify(headers)))
153-
if (ENV.get('play_local_proxy_type', '1') === '2') {
154-
urls.push("原代本", `http://127.0.0.1:7777/?thread=${ENV.get('thread') || 6}&form=urlcode&randUa=1&url=` + encodeURIComponent(down.download_url) + '&header=' + encodeURIComponent(JSON.stringify(headers)));
155-
} else {
156-
urls.push("原代本", `http://127.0.0.1:5575/proxy?thread=${ENV.get('thread') || 6}&chunkSize=256&url=` + encodeURIComponent(down.download_url));
157-
}
151+
down.forEach((t) => {
152+
if(t.url!==undefined){
153+
urls.push(t.name, t.url+ "#isVideo=true##fastPlayMode##threads=20#")
154+
urls.push("猫"+t.name, `http://127.0.0.1:5575/proxy?thread=${ENV.get('thread') || 6}&chunkSize=256&url=` + encodeURIComponent(t.url));
155+
}
156+
});
158157
const transcoding = (await Quark.getLiveTranscoding(ids[0], ids[1], ids[2], ids[3])).filter((t) => t.accessable);
159158
transcoding.forEach((t) => {
160-
urls.push(t.resolution === 'low' ? "流畅" : t.resolution === 'high' ? "高清" : t.resolution === 'super' ? "超清" : t.resolution, t.video_info.url)
159+
urls.push(t.resolution === 'low' ? "流畅" : t.resolution === 'high' ? "高清" : t.resolution === 'super' ? "超清" : t.resolution, t.video_info.url+ "#isVideo=true##fastPlayMode##threads=20#")
161160
});
161+
// urls.push("原画", down.download_url + '#fastPlayMode##threads=10#');
162+
// urls.push("原代服", mediaProxyUrl + `?thread=${ENV.get('thread') || 6}&form=urlcode&randUa=1&url=` + encodeURIComponent(down.download_url) + '&header=' + encodeURIComponent(JSON.stringify(headers)));
163+
// if (ENV.get('play_local_proxy_type', '1') === '2') {
164+
// urls.push("原代本", `http://127.0.0.1:7777/?thread=${ENV.get('thread') || 6}&form=urlcode&randUa=1&url=` + encodeURIComponent(down.download_url) + '&header=' + encodeURIComponent(JSON.stringify(headers)));
165+
// } else {
166+
// urls.push("原代本", `http://127.0.0.1:5575/proxy?thread=${ENV.get('thread') || 6}&chunkSize=256&url=` + encodeURIComponent(down.download_url));
167+
// }
168+
// const transcoding = (await Quark.getLiveTranscoding(ids[0], ids[1], ids[2], ids[3])).filter((t) => t.accessable);
169+
// transcoding.forEach((t) => {
170+
// urls.push(t.resolution === 'low' ? "流畅" : t.resolution === 'high' ? "高清" : t.resolution === 'super' ? "超清" : t.resolution, t.video_info.url)
171+
// });
162172
return {
163173
parse: 0,
164174
url: urls,
165-
header: {
166-
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
167-
'origin': 'https://pan.quark.cn',
168-
'referer': 'https://pan.quark.cn/',
169-
'Cookie': headers
170-
}
175+
header: headers
171176
}
172177
} else if (flag.startsWith('UC-')) {
173178
console.log("UC网盘解析开始");

0 commit comments

Comments
 (0)