Description: This is a service menu to download subtitles from opensubtitle.org
just right click on a video file -> scripts -> download subtitle, it will show you a list of subtitles select one and it will be downloaded and saved with the same name as the video (with a subtitle extension of course), so your player will detect automatically the subtitle
The search is done extracting a hash from the file, this way you will get the correct subtitle for sure (no more async problems)
thank you to opensubtitles.org for that great service, hope this will be implemented directly in media players
I did it like this:
1.copy/paste all the stuff from the download link to texteditor.
2.save it with name like Download.subtitle.py
3.Move it to the nautilus-scripts folder, which was in .gnome2 folder on me. Ill say that in other words.
Copy the Download.subtitle.py to .gnome2/nautilus-scripts
4.make it executable with command chmod u+x Download.subtitle.py
at this point i went confused, Nautilus script manager says that there is no scripts named Download.subtitle.py when i tried to enable it from the terminal. But after all it seems that you dont need to enable it. just move it to the folder and it started working for me.
Hope this helps.
- Sergeant Vk
Oh and...
...If you do all this in nautilus, it probably needs to be restarted, im not sure because i did the file moving in terminal and then opened nautilus.
Just follow sergeant's instructions, then in the script, change:
session = server.LogIn("","","en","python")
to
session = server.LogIn("","","en","OS Test User Agent")
(python useragent is not accepted anymore by opensubtitles)
and to make it work in Ubuntu, change:
{1}
to
'{1}'
You can also change the default width and height if you want the window to be bigger. I chose 750 x 700.
That's all.
Thank you Hirs, you're a hero !
Great script, but I can't change the language of the subtitles to spanish, I tried:
searchlist.append({'sublanguageid':'es', ..
and
searchlist.append({'sublanguageid':'esp', ..
Ratings & Comments
10 Comments
It's now at https://github.com/emericg/opensubtitles-download
subtitles en español es ---- spa ----
But this is not a tar.bz2 file.. how can i install it?
I did it like this: 1.copy/paste all the stuff from the download link to texteditor. 2.save it with name like Download.subtitle.py 3.Move it to the nautilus-scripts folder, which was in .gnome2 folder on me. Ill say that in other words. Copy the Download.subtitle.py to .gnome2/nautilus-scripts 4.make it executable with command chmod u+x Download.subtitle.py at this point i went confused, Nautilus script manager says that there is no scripts named Download.subtitle.py when i tried to enable it from the terminal. But after all it seems that you dont need to enable it. just move it to the folder and it started working for me. Hope this helps. - Sergeant Vk
Oh and... ...If you do all this in nautilus, it probably needs to be restarted, im not sure because i did the file moving in terminal and then opened nautilus.
Just follow sergeant's instructions, then in the script, change: session = server.LogIn("","","en","python") to session = server.LogIn("","","en","OS Test User Agent") (python useragent is not accepted anymore by opensubtitles) and to make it work in Ubuntu, change: {1} to '{1}' You can also change the default width and height if you want the window to be bigger. I chose 750 x 700. That's all. Thank you Hirs, you're a hero !
Oh yeah, forgot to say, nautilus doesn't need to be restarted.
Great. But can script ask about lang? I dont want english subs :P Only polish
You can change the language to polish, there are instructions inside the file (is as simple as changing 'en' to 'pl')
Great script, but I can't change the language of the subtitles to spanish, I tried: searchlist.append({'sublanguageid':'es', .. and searchlist.append({'sublanguageid':'esp', ..