DualSubs / YouTube

YouTube增强及双语字幕解决方案
https://DualSubs.github.io/guide/youtube
Apache License 2.0
471 stars 15 forks source link

Youtube翻译设置的是双语,但是实际只会显示中文字幕。 #6

Closed 0daysseus closed 1 year ago

0daysseus commented 1 year ago

当字幕选择自动翻译时,未达到双语字幕的效果。 Loon 3.1.2(622)

Script Type: HTTP-REQUEST

Expression: ^https?:\/\/(www|m).youtube.com\/api\/timedtext

Match URL: https://www.youtube.com/api/timedtext?v=s5dGAj02Bc8&ei=w4weZbajCcCk1PIPkeqDsAs&caps=asr&opi=112496729&xoaf=5&hl=zh-CN&ip=0.0.0.0&ipbits=0&expire=1696526131&sparams=ip,ipbits,expire,v,ei,caps,opi,xoaf&signature=72FFEC4E941B4638046868992F66B20DF4A86361.DBA9B68C3CC1CF6CCCE849573D9AC4A4ED488399&key=yt8&kind=asr&lang=en&tlang=zh-Hans&format=srv3

Script State: 状态:已释放

Log:

🔔🍿 DualSubs: ▶ YouTube v0.9.1(1) timedtext.request, 开始! ⚠ 🍿 DualSubs: ▶ YouTube v0.9.1(1) timedtext.request METHOD: GET HOST: www.youtube.com PATH: api/timedtext PATHs: api,timedtext

☑️ 🍿 DualSubs: ▶ YouTube v0.9.1(1) timedtext.request, Detect Platform

✅ 🍿 DualSubs: ▶ YouTube v0.9.1(1) timedtext.request, Detect Platform, Platform: YouTube

⚠ 🍿 DualSubs: ▶ YouTube v0.9.1(1) timedtext.request, PLATFORM: YouTube

⚠ 🍿 DualSubs: ▶ YouTube v0.9.1(1) timedtext.request, FORMAT: undefined

☑️ 🍿 DualSubs: ▶ YouTube v0.9.1(1) timedtext.request, Set Environment Variables

✅ 🍿 DualSubs: ▶ YouTube v0.9.1(1) timedtext.request, Set Environment Variables Settings: object Settings内容: {"Switch":true,"Type":"Official","Types":["Official","Translate"],"Languages":["AUTO","AUTO"],"CacheSize":100,"AutoCC":true,"ShowOnly":false,"Position":"Forward"}

⚠ 🍿 DualSubs: ▶ YouTube v0.9.1(1) timedtext.request Settings.Switch: true

⚠ 🍿 DualSubs: ▶ YouTube v0.9.1(1) timedtext.request, Type: Official, Languages: EN,ZH

⚠ 🍿 DualSubs: ▶ YouTube v0.9.1(1) timedtext.request, 翻译语言:已指定

⚠ 🍿 DualSubs: ▶ YouTube v0.9.1(1) timedtext.request, 官方字幕:自动翻译

🚧 🍿 DualSubs: ▶ YouTube v0.9.1(1) timedtext.request, 调试信息 $request.url: https://www.youtube.com/api/timedtext?v=s5dGAj02Bc8&ei=w4weZbajCcCk1PIPkeqDsAs&caps=asr&opi=112496729&xoaf=5&hl=zh-CN&ip=0.0.0.0&ipbits=0&expire=1696526131&sparams=ip,ipbits,expire,v,ei,caps,opi,xoaf&signature=72FFEC4E941B4638046868992F66B20DF4A86361.DBA9B68C3CC1CF6CCCE849573D9AC4A4ED488399&key=yt8&kind=asr&lang=en&tlang=zh-Hans&format=srv3&subtype=Official

🎉 🍿 DualSubs: ▶ YouTube v0.9.1(1) timedtext.request, finally $request FORMAT: undefined

🔔🍿 DualSubs: ▶ YouTube v0.9.1(1) timedtext.request, 结束! 🕛 0.015 秒

Loon 3.1.2(622)

Script Type: HTTP-RESPONSE

Expression: ^https?:\/\/(www|m).youtube.com\/api\/timedtext\?(.*)subtype=(Official|External)

Match URL: https://www.youtube.com/api/timedtext?v=s5dGAj02Bc8&ei=w4weZbajCcCk1PIPkeqDsAs&caps=asr&opi=112496729&xoaf=5&hl=zh-CN&ip=0.0.0.0&ipbits=0&expire=1696526131&sparams=ip,ipbits,expire,v,ei,caps,opi,xoaf&signature=72FFEC4E941B4638046868992F66B20DF4A86361.DBA9B68C3CC1CF6CCCE849573D9AC4A4ED488399&key=yt8&kind=asr&lang=en&tlang=zh-Hans&format=srv3&subtype=Official

Script State: 状态:已释放

Log: [JS exception]:SyntaxError: Invalid character: '#' [JS exception]:TypeError: undefined is not an object

0daysseus commented 1 year ago

我的ios是14.2 可能是JavaScriptCore的版本太低了 目前可以正常工作了 感谢作者的适配🥰