Often we require to use subtitles for a video or movie, this in order to have a better understanding of the video and even the use of them it is necessary when you want to watch a video or movie with a disabled person.
On the web there are several sites where you can find a large number of subtitles contributed by users. One of these, among the best known is opensubtitles.
This website, unlike others, allows you to download subtitles without having to be registered on the website, which is an excellent option.
Navigating through these types of sites may require some of your time, so using an application that is responsible for finding the subtitles for your video is a better option.
Table of Contents
OpenSubtitlesDownload.py an application written in Python and created to help you quickly find and download subtitles for your favorite videos.
Although there are other applications that can do the same, The interesting thing about this application is that it can be used as a nautilus script or as a normal application that works in GNOME or KDE desktop environments.
Also another of its characteristics is that it can be used in full CLI mode (Command Line Interface) on your NAS, Raspberry Pi, among others.
Subtitle search is done by accurately identifying your video files by calculating unique hash sums of the videos.
In this way, you have a better chance of finding the exact subtitles for your videos, avoiding synchronization problems between subtitles and more.
The subtitle search and download service works with opensubtitles.org, with which, thanks to its characteristic of not requiring registration to perform the search and download, the application relies on this to offer you its characteristics.
Among its main features that we can highlight of this application we find:
- Use a GNOME / GTK or KDE / Qt GUI depending on your favorite desktop environment.
- Check subtitles in more than 60 different languages for documentaries, movies, TV shows and more ...
- Check subtitles in several languages at the same time.
- Check subtitles for multiple video files at the same time.
- Detects valid video files (using mime types and file extensions).
- Detect correct video titles by calculating unique movie hash sums to download the correct subtitles for the correct file!
- If the video detection fails, the file name search will be performed as a backup method.
- Download the subtitles automatically if there is only one available, choose the one you want otherwise.
- Rename the downloaded subtitles to match the original video file. Ability to add the language code to the file name (for example: movie_en.srt).
How to install OpenSubtitlesDownload.py on Linux?
We can install this great program to be able to download the subtitles of our videos with just a right click on the video.
For this we only have to install some dependencies that are necessary, in most of the distributions they will already be installed.
What we require is:
- python (version 2 or 3)
- zenity (for distributions with Gnome desktop environment or Forks of this)
- kdialog (only if you have KDE installed)
- wget & gzip
Now we are going to create a folder for the application with one of these commands, depending on the file manager we use.
First we must download the script with:
Discharged, we proceed to edit it with:
And we look for the following line:
opt_languages = ['eng']
Here we change the language or add the languages in which the subtitles will be searched. Where the first will be the preferred language.
opt_languages = ['eng,spa']
Similarly We can force it to show us the available ones and choose others, for this we look for the line:
opt_selection_mode = 'default'
And we change it to "manual"
opt_selection_mode = 'manual'
You can check more about the configuration options In the following link.
We create the directory and move the script to it.
mkdir -p ~/.local/share/nautilus/scripts mv OpenSubtitlesDownload.py ~/.local/share/nautilus/scripts/ chmod u+x ~/.local/share/nautilus/scripts/OpenSubtitlesDownload.py
mkdir -p ~/.local/share/nemo/scripts mv OpenSubtitlesDownload.py ~/.local/share/nemo/scripts/ chmod u+x ~/.local/share/nemo/scripts/OpenSubtitlesDownload.py
mkdir -p ~/.config/caja/scripts mv OpenSubtitlesDownload.py ~/.config/caja/scripts/ chmod u+x ~/.config/caja/scripts/OpenSubtitlesDownload.py