BSPlayer is a great media player that automatically downloads subtitles for the video you are watching. I often find myself needing to download subtitles for many videos at once. To do that, I usually open each video file at a time using BSPlayer, wait for the subtitles to be downloaded and proceed to the next file. This method is really time consuming, and I just knew that I could do better.
Ladies and gentlemen, I'm proud to present you the "BSPlayer Subtitles Downloader"!
This is a tools that receives the video file path, and simply downloads the subtitles for it just like BSPlayer does.
Behind the scenes, the tool uses a nice Python API I implemented to interact with the BSPlayer subtitles server.
I implemented this API by analyzing the HTTP requests BSPlayer was making to the subtitles server, using Wireshark. I also got a little help from the nice repository I found: service.subtitles.bsplayer
.
I also wrote a script that adds a nice Windows context menu button, which allows you to right click for Download Subtitles
.
The API is completely open source, so feel free to use it :)
This library requires Python 3.6 or higher.
To use this you must install Python (3.8 is preferred). You can install it from the following link: https://www.python.org/downloads/. After Python is installed, execute the following commands:
git clone https://github.com/itaispiegel/BSPlayer-Subtitles-Downloader.git
cd BSPlayer-Subtitles-Downloader
python setup.py install
python -m bsplayer.scripts.install_context_menu
After executing the commands, you can finally execute download_subtitles
to simply download subtitles for a given video or you can use the right click added to the Windows Explorer context menu.
For any following questions, please feel free to send me a private message or email at: itai.spiegel@gmail.com