-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto download subtitles #677
Auto download subtitles #677
Conversation
Another todo: avoid re-downloading existing subs. |
I've found issues with single video files. |
Another TODO: add app notifications for errors. |
I also thought about adding a subtitle downloader, but I think it would make more sense as a Also I edited the title, since I initially thought this was about loading embedded subtitles (like in mkv files). |
Thanks for the title adjustments @mathiasvr! |
…les from preferences.
i don't like hitting a central server every time a file is opened. not ideal for privacy or performance. what about checking OpenSubtitles only after the user clicks the CC button? currently, that pops open an Open File dialog we could make it show a menu instead: Open Subtitles File, Search OpenSubtitles. If the user clicks that second option, it would show a loading spinner, then a list of available languages. they can select one to download and use that subtitle track. to be honest, i'm not sure we need this. i don't know any video player that has this feature. even VLC supports it only via a third-party plugin called VLsub. |
@dcposch, the latest code on the PR allows enabling / disabling automatic subtitles downloading from preferences. But in general it's a cool and useful feature that might be appreciated by anyone who uses subtitles. That being said, I really like the idea of having a plugin repository integrated in the app. |
Thanks for the PR, but we're not going to add this feature to WebTorrent Desktop, because the legality of OpenSubtitles is not clear to us. Once there's a plugin system, I suppose you could build this as a plugin. But it's not something the WebTorrent team can endorse. |
I see. Thanks for the explanation @feross! |
Sure thing. 👍 |
There're some other players that use this that are open source, likely even copyleft. I don't know which one I use that has it. Perhaps ask them about it. |
SMPlayer has it and is GNU. |
I say if you let user decide what and if he wants the subtitles choosing "find subtitles" option, then it becomes his responsibility what happens right? |
Added subtitles autoloading.
Uses OpenSubtitles API.
All available subtitles for configured language are downloaded into the subs folder on the torrent path.
Then, one after one they are loaded into WebTorrent.
It's a brute force approach to subtitle loading.
TODO: add subtitles preferences with language selector and total amount of downloaded subtitles limit.