asbplayer icon indicating copy to clipboard operation
asbplayer copied to clipboard

Load youtube's auto-translated subtitles

Open cspotcode opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

Youtube generates "auto-translate" subtitles, but I cannot choose them in ASBPlayer's dropdown.

I would like to select these auto-translated subtitles for track 2 / dual subs in ASBPlayer.

Describe the solution you'd like

Expose these auto-translated subtitle languages as an option in ASBPlayer's "Load subtitles" dropdown.

Describe alternatives you've considered

Somehow downloading these subs manually and drag-and-dropping them into ASBPlayer.

Additional context

I've been using this browser extension which automatically loads and displays dual subtitles on YouTube. https://chromewebstore.google.com/detail/mouse-tooltip-translator/hmigninkgibhdckiaphhmbgcghochdjc

It does this even for videos which only list one subtitle language because it downloads YouTube's "auto-generated" subtitles, too.

This is great, except it doesn't have any of ASBPlayer's other features.

It would be great if ASBPlayer had the option of loading these auto-translated subtitles as dual subs / track 2.

I believe this is the code where it detects user subs in the desired language first, then falls back to auto-generated: https://github.com/ttop32/MouseTooltipTranslator/blob/c888f621d0286fa887d911f0f878cad58ddb3fe2/src/subtitle/youtube.js#L133-L143

I don't need ASBPlayer to do anything magical, but it would be nice if these auto-generated subs were somehow available in ASBPlayer's dropdown.

cspotcode avatar Jul 08 '24 23:07 cspotcode