peno64 / service.subtitles.opensubtitles-com-dualsub

GNU General Public License v2.0
2 stars 0 forks source link

Leia discussion #1

Closed doko-desuka closed 7 months ago

doko-desuka commented 7 months ago

Hi @peno64 , how are you? You had asked me to share any backporting efforts that I made for Leia.

I finally got some time to analyze the new add-on by opensubtitles (for their REST api), and I found it a bit overkill.
The old add-on (https://mirrors.kodi.tv/addons/leia/service.subtitles.opensubtitles/) just had like two script files, and after their new REST API I managed to make a very lean version with a single script.

So I'm not sure if that's gonna interest you.
It works fine for what I needed (English subs + supporting the new API).
One thing that was reduced is that, since the new API generates a direct link to an SRT file, I changed it to pass that link to Kodi as the final result, so Kodi can download it itself instead of the subtitles add-on doing it manually and only then giving the path to the local file to Kodi.
I haven't put it in any repos since it's very bare bones.