DualSubs / Universal

通用流媒体平台增强及双语字幕解决方案
https://DualSubs.github.io/guide/universal
Apache License 2.0
1.3k stars 54 forks source link

DeepL API and External subtitles issues #16

Open Liqianyu opened 2 years ago

Liqianyu commented 2 years ago

Environment Sugre iOS 4.20.0 TestFlight DualSubs V0.7.x + BoxJs tvOS 15.6

Peacock only Google Translate works, Google Cloud Translate API\Microsoft Azure Translator is not tested, DeepL API will cause infinite loading. It seems that compatibility mode can add "Mandarin" to the UI subtitles menu, but it's the same as English (is Google Translate).

By testing against other streaming platforms, I think DeepL API unavailability is not a single platform issue. Subtitles such as Peacock, I think, are only supported in WebVTT format. SubRip is not displayed. hulu will still composite some lines into English if set to display only subtitles (no compositing). This can affect the display of subtitles.

Liqianyu commented 2 years ago

By further testing, I think the external subtitle vtt/webvtt works fine. There are some minor issues

  1. Even if you set only external subtitles to be displayed, the hearing-impaired auxiliary text of English CC will be displayed (not hard subtitles)
  2. The line breaks within the subtitles
    do not seem to be recognized correctly, which causes the bilingual subtitles to be displayed on one line.

If you redirect the vtt url to the subtitle file via Surge URL Rewrite, you can avoid the problem that currently exists with the module.