clsid2 / mpc-hc

Media Player Classic
GNU General Public License v3.0
10.99k stars 491 forks source link

Can add option to add others Subtitle providers? #1129

Closed richenberg closed 3 years ago

richenberg commented 3 years ago

Hello! Can add option to add others Subtitle providers? i want to add a brazilian subtitle provider like "http://legendas.tv/" and "https://legendei.to/"

clsid2 commented 3 years ago

A subtitle website is not the same as a subtitle provider. A subtitle provider needs to provide a programming API for searching and downloading subtitles. Those websites and many other subtitle websites do not provide that functionality.

So they can't be added. Same answer applies to other websites as well.

ale5000-git commented 3 years ago

@richenberg: You tecnically can directly parse xml and html pages to get the same thing, but the parser should be updated every time the site change.

@clsid2: It could be interesting (but low priority) to create an interface in MPC-HC to use an external python script for getting subtitles (like youtube-dl) passing to it language, hash and filename. It should be likely external since it would require prompt updates. It could support an infinite number of websites.

clsid2 commented 3 years ago

I am not interested in adding any new functionality.

You can make your own tool to download subtitles before even starting playback. The hash algorithm is open source.