Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

字幕顯示不正常,貌似愛奇藝國際站對字幕進行了base64編碼 #19

Closed
ghost opened this issue Oct 19, 2020 · 9 comments
Closed

Comments

@ghost
Copy link

ghost commented Oct 19, 2020

image
如圖所示,字幕是經過編碼過的,而不是明文字符(漢字,英文)
經過我初步判斷,應該是base64編碼

@ghost
Copy link
Author

ghost commented Oct 19, 2020

@jaysonlong

@ghost
Copy link
Author

ghost commented Oct 19, 2020

我確定我的播放器沒有問題

@ghost ghost changed the title 字幕顯示不正常,貌似愛奇藝視頻國際版對字幕進行了base64編碼過的 字幕顯示不正常,貌似愛奇藝視頻國際版對字幕進行了base64編碼 Oct 19, 2020
@ghost
Copy link
Author

ghost commented Oct 19, 2020

十个字幕沒一个是明文

@ghost ghost changed the title 字幕顯示不正常,貌似愛奇藝視頻國際版對字幕進行了base64編碼 字幕顯示不正常,貌似愛奇藝國際站對字幕進行了base64編碼 Oct 19, 2020
@jaysonlong
Copy link
Owner

请给出问题视频地址

@ghost
Copy link
Author

ghost commented Oct 20, 2020 via email

@jaysonlong
Copy link
Owner

jaysonlong commented Oct 20, 2020

不是 base64,这里是使用 C++ 编写的 WebAssembly 形式的自定义编解码器。目前还没找到什么在浏览器之外如 python 脚本中解码的办法。

目前的解决方案是通过以下代码伪装当前浏览器的 WebAssembly 兼容性:

window.WebAssembly = undefined;

这样可以直接获取明文字幕,绕过自定义编码。
暴力猴脚本已更新: fe8ed01

@ghost
Copy link
Author

ghost commented Oct 20, 2020 via email

@jaysonlong
Copy link
Owner

能自己试出答案的就不要问了

@ghost
Copy link
Author

ghost commented Oct 20, 2020

謝謝大佬,現在顯示正常了

@ghost ghost closed this as completed Oct 20, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant