ThaUnknown / miru

Bittorrent streaming software for cats. Stream anime torrents, real-time with no waiting for downloads.
https://miru.watch
GNU General Public License v3.0
2.36k stars 133 forks source link

[Feature Request]: Automatic subtitle track translation #355

Closed EnergoStalin closed 10 months ago

EnergoStalin commented 10 months ago

Preflight checklist

Problem Description

I want miru have option to automatically translate subtitles.

This is definitely looks like edge case because seems no one besides me bothering about that except youtube which added built in on the fly translation but it still valuable for me i even have mpv plugin for this purpose. The main reason is for some anime subtitles releases not quickly enough or not at all in my or other's first language. So i believe having machine translation can be a nice addition to autoplay torrents if you don't much bother about translation quality because context can be easily missed by translator if supplying it line by line.

Proposed Solution

I suggest porting and improving my mpv plugin functionality to miru because when i was writing this plugin there's was a lot of limitations to maintain portability which is wont be problem in miru's case.

In such case bare minimum what miru should have:

As for automatic enable behaviour don't think we need it. It was helpful when switching between episodes in mpv but in miru it can be done in another level.

I was used crow translate CLI as translation service because of limited lua runtime. But there's A LOT better options on js with normal runtime.

Additional useful features:

So there's the feature.

ThaUnknown commented 10 months ago

yeaaaaaaaaah........ nooooo........... definitely not....

you can just pick a multi-sub release if one exists instead