Skip to content

Commit 9d09a10

Browse files
committed
Revert "feat: 添加兼容模式设置以解决 Google 风控导致无法加载字幕的问题"
This reverts commit b10e5a3.
1 parent b10e5a3 commit 9d09a10

3 files changed

Lines changed: 1 addition & 14 deletions

File tree

arguments-builder.config.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,6 @@ export default defineConfig({
110110
type: "boolean",
111111
description: "是否仅显示“自动翻译”字幕,不显示源语言字幕。",
112112
},
113-
{
114-
key: "Compatibility",
115-
name: "[字幕] 兼容模式",
116-
defaultValue: true,
117-
type: "boolean",
118-
description: "是否启用兼容模式以解决 Google 风控导致无法加载字幕的问题。",
119-
},
120113
{
121114
key: "LogLevel",
122115
name: "[调试] 日志等级",

src/function/database.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export default {
66
Languages: ["AUTO", "ZH"],
77
AutoCC: true,
88
ShowOnly: false,
9-
Compatibility: true,
109
},
1110
Configs: {
1211
Languages: {

src/request.dev.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Console.info(`PATHs: ${PATHs}`);
1818
// 解析格式
1919
const FORMAT = ($request.headers?.["Content-Type"] ?? $request.headers?.["content-type"])?.split(";")?.[0];
2020
Console.info(`FORMAT: ${FORMAT}`);
21-
!(async () => {
21+
(async () => {
2222
/**
2323
* 设置
2424
* @type {{Settings: import('./types').Settings}}
@@ -226,11 +226,6 @@ Console.info(`FORMAT: ${FORMAT}`);
226226
break;
227227
}
228228
}
229-
if (Settings.Compatibility) {
230-
$request.headers.cookie = "PREF=f4=4000000&f6=40000000&tz=Asia.Shanghai&f5=30000&f7=100;"
231-
//url.hostname = "video.google.com";
232-
//url.pathname = "/timedtext";
233-
}
234229
if (url.searchParams.get("tlang")) {
235230
Console.info("翻译语言:已指定");
236231
// 保存目标语言

0 commit comments

Comments
 (0)