download_opensubtitle

Nautilus Scripts

Source (required if based on other people's work):

1
Score 64%
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

- Dependencies:
python
wget
zenity
Last changelog:

8 years ago

Version 0.2:

Some fixes and added language support in the gui

Thank you David Bengoa for this changes

joopbraak

6 years ago

It's now at

https://github.com/emericg/opensubtitles-download

Report

adrianusswat

9 years ago

subtitles en español es ---- spa ----

Report

MohamedHusain

10 years ago

But this is not a tar.bz2 file.. how can i install it?

Report

sergeant

9 years ago

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

Report

sergeant

9 years ago

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.

Report

joopbraak

7 years ago

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 !

Report

joopbraak

7 years ago

Oh yeah, forgot to say, nautilus doesn't need to be restarted.

Report

skoruppa

11 years ago

Great. But can script ask about lang? I dont want english subs :P Only polish

Report

C

Hirs

11 years ago

You can change the language to polish, there are instructions inside the file (is as simple as changing 'en' to 'pl')

Report

rubengs

10 years ago

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', ..

Report

8 years ago

Version 0.2:

Some fixes and added language support in the gui

Thank you David Bengoa for this changes

product-maker I4C Feb 19 2013

product-maker joopbraak May 15 2011

product-maker 11 25

File (click to download) Version Description Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
version
0.2
updated May 08 2010
added Oct 18 2007
downloads today
0
page views today 0
System Tags addon