Skip to content

Commit 9c78b56

Browse files
committed
更新_worker.js,添加对订阅链接去重的支持
1 parent c175ceb commit 9c78b56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_worker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ async function proxyURL(proxyURL, url) {
380380
async function getSUB(api, request, 追加UA, userAgentHeader) {
381381
if (!api || api.length === 0) {
382382
return [];
383-
}
383+
} else api = [...new Set(api)]; // 去重
384384
let newapi = "";
385385
let 订阅转换URLs = "";
386386
let 异常订阅 = "";

0 commit comments

Comments
 (0)