download_opensubtitle

Nautilus Scripts

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

1
Become a Fan
5.3

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:

Version 0.2:

Some fixes and added language support in the gui

Thank you David Bengoa for this changes


Ratings & Comments

10 Comments

joopbraak

It's now at https://github.com/emericg/opensubtitles-download

adrianusswat

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

MohamedHusain

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

sergeant

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

sergeant

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.

joopbraak

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 !

joopbraak

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

skoruppa

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

Hirs

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

rubengs

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

Pling
0 Affiliates
Details
license
version 0.2
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 2

More Nautilus Scripts from Hirs:

download_tvsubtitles.net
Hirs
last update date: 16 years ago

Score 5.0

Other Nautilus Scripts:

Gflv2avi
acidc00l
last update date: 15 years ago

Score 5.0

My Movie Portal v3.2.8
iTechScripts
last update date: 13 years ago

Score 4.7

Browse Nautilus as root
SteveSims
last update date: 17 years ago

Score 5.0

Open Nautilus as Root
Mariux
last update date: 17 years ago

Score 5.0

Compare Strings
cdmn
last update date: 17 years ago

Score 5.0

grooto
pontos
last update date: 17 years ago

Score 5.0



System Tags