Nautilus Scripts

Source (link to git-repo or to original if based on someone elses unmodified work): https://github.com/emericg/OpenSubtitlesDownload/

1
Score 63%
Description:

The subtitles search and download service is powered by http://www.opensubtitles.org. Big thanks to their hard work on this amazing project! Be sure to give them your support (http://www.opensubtitles.org/en/support) if you appreciate the service provided, they sure need donations for handling the ever growing hosting costs!

Features:
- Use a GNOME/GTK or KDE/Qt GUI depending on your favorite desktop environment.
- Or just use the CLI! Great for automation, and it works on Linux and macOS.
- Query subtitles in more than 60 different languages for documentaries, movies, TV shows and more...
- Query subtitles in multiple languages at once.
- Query subtitles for multiple video files at once.
- Detect valid video files (using mime types and file extensions).
- Detect correct video titles by computing unique movie hash sums in order to download the right subtitles for the right file!
- If the video detection fails, search by filename will be performed as backup method.
- Download subtitles automatically if only one is available, choose the one you want otherwise.
- Rename downloaded subtitles to match source video file. Possibility to append the language code to the file name (ex: movie_en.srt).

Requirements:
- python (version 2 or 3)
- zenity (only for GNOME based desktop environments)
- kdialog (only for KDE based desktop environments)
- common unix tools: wget & gzip (subtitles downloading), ps & grep (GUI autodetection)

Use it:
- As a simple CLI script
- As a Nautilus script (right click on one or more video file > "scripts" > "OpenSubtitleDownload.py")
- As a simple GNOME/GTK software (right click on one or more video file > "open with" > enter the script path)

Installation:
All informations can be found here: https://github.com/emericg/OpenSubtitlesDownload/wiki

Quick installation as a nautilus script, under GNOME 3 desktop environment:

$ git clone https://github.com/emericg/OpenSubtitlesDownload.git
$ mkdir -p ~/.local/share/nautilus/scripts/
$ cp OpenSubtitlesDownload/OpenSubtitlesDownload.py ~/.local/share/nautilus/scripts/OpenSubtitlesDownload.py
$ chmod u+x ~/.local/share/nautilus/scripts/OpenSubtitlesDownload.py

How to adjust settings ?
You can adjust several settings to make OpenSubtitlesDownload.py even better experience suiting your every needs! Learn more on the Adjust settings page:
https://github.com/emericg/OpenSubtitlesDownload/wiki/Adjust-settings

Last changelog:

OpenSubtitlesDownload version 3.6 19 days ago

- New feature: You can now choose your search mode between hash, filename, hash_then_filename, hash_and_filename (and adjust it through CLI)
- New feature: You can now choose your selection mode between manual, default or auto (and adjust it through CLI)
- New feature: Add a new exit code for successful execution but with no subtitles found
- Fix a problem when first successful search round was disabling search by filename for next rounds
- Add a setting (opt_search_overwrite) to avoid re-downloading an existing subtitles (disabled by default)
- Respect language priority when auto selecting a subtitles
- Better exceptions handling
- Various bugfixes

lbdesign

19 days ago

In Norway at least opensubtitles.org is banned and blocked by court order on the ISP level something that might give errors. Try the url in a browser first.

Report

S

JCA

19 days ago

+

Report

kccrog2

2 years ago

just what i've been looking for since ever

thanks

Report

sufit

2 years ago

perfect :)

Report

FriendlyTroll

4 years ago

Doesn't work for me on 14.04. Shows the error:

"An unknown error occurred, sorry about that...

Please check:
- Your Internet connection status
- www.opensubtitles.org availability
- Your 200 downloads per 24h limit
- You are using the latest version of this software"

I have checked all of the above but still doesn't work.

Report

C

Emericg

4 years ago

Probably a temporary problem with OpenSubtitles.org; it works now!

Report

cvele

6 years ago

hi. i'm using nutilus 3.2.1 on Fedora 16. It works great, nice job. The only problem is when I click cancel it downloads a subtitle anyway.

Report

C

Emericg

6 years ago

Yes indeed, that's a very known bug. My problem is that I can't enable both "cancel" and the "ok" button.

Right now, if you click on the "ok" button without having selected any subtitles (by clicking on them on the list), zenity give back an error code! If you click on "cancel", zenity give back the very same error code... If you close the window with the "X" button (I'm not sure how to call this in english), the same error code is returned again. There is no way to distinguish these actions, this is very frustrating.

So if I enable the "cancel" button, the "ok" button will also be some kind of cancel button, except if you select a subtitles on the list with a single or a double click.

Some people have the habit to just click "ok" and expect opensubtitles-download to download the first subtitles on the list, I think this is the best option. What do you think ?

Report

joopbraak

6 years ago

It's now at

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

Report

otrov

7 years ago

doesn't work don't bother

Report

C

Emericg

7 years ago

http://www.opensubtitles.org/ was in maintenance yeasterday, it's working again today.

Report

leodelacruz

8 years ago

Smpayer include that option

Report

sorror

8 years ago

Because of 404 error on http://api.opensubtitles.org/xml-rpc the script can not successfully connect to the opensubtitles server and download any subtitles.

Report

C

Emericg

8 years ago

This is because opensubtitles.org api is currently down (servers are overloaded), and the admin is currently away.
This will hopefully be solved soon.

Follow progress here : http://twitter.com/opensubtitles

Report

sorror

8 years ago

Thanks for the info, thought maybe the API xml-rpc url has changed again and update in the script source code is needed. But you're right, opensubtitles.org's servers fault again.

Report

mormope

8 years ago

can i add more languages to download?

Report

C

Emericg

8 years ago

You can change edit the "Language selection" section at the begining of the script.
Replace the 3 letters code 'eng' by the language code you want (you can find langage code on this page : http://en.wikipedia.org/wiki/List_of_ISO_639-2_codes)

My advice is to create one script for each langage you want, and add a suffix to the file (ex: ***-eng.py, ***-fr.py, ...)

I will add soon the possibility to search subtitles in more than one langage at a time.

Report

OpenSubtitlesDownload version 3.6 19 days ago

- New feature: You can now choose your search mode between hash, filename, hash_then_filename, hash_and_filename (and adjust it through CLI)
- New feature: You can now choose your selection mode between manual, default or auto (and adjust it through CLI)
- New feature: Add a new exit code for successful execution but with no subtitles found
- Fix a problem when first successful search round was disabling search by filename for next rounds
- Add a setting (opt_search_overwrite) to avoid re-downloading an existing subtitles (disabled by default)
- Respect language priority when auto selecting a subtitles
- Better exceptions handling
- Various bugfixes

Archive 4 years ago

Version 3.5
- New feature: search by filename (if the search by hash sums fails)
- New feature: use your opensubtitles.org VIP account to avoid in-subtitles ads
- New feature: Warn the user if a required tool (wget, gunzip) is missing
- Improved subtitles auto selection
- Improved error messages
- Improved language selection

Version 3.2
- New feature: Search subtitles over samba/ftp/http nautilus mounts!
- Various fixes on string sanitization
- Longer "auto-retry" timers when opensubtitles.org API is not responding
- Code cleanups and internal improvments as usual

Version 3.1
- Bug fix release
- Better stability for network operations

Version 3.0
- Improved general presentation and error messages
- Possibility to abort a search with the "cancel" button (previously broken)
- Possibility to let the script work fully automatically, without user intervention needed
- New CLI mode!
- New KDE mode using kdialog (well, completely untested :-)
- Works transparently with python version 2 or 3
- Code cleanups and internal improvments as usual

Version 2.0
- Multiple language search, thanks to TomáÅ¡ Hnyk!
- Tunable parameters to customize your experience (please visit the wiki on GitHub)
- Updated error and download messages

Version 1.1
- Updated error messages
- Progress bar when downloading subtitles
- Handle movie / tv-show episode names with quotes
- Handle file names with quotes
- Code cleanup

Version 1.0
- Initial release
- Based on the work of *Carlos Acedo*, thanks to him: http://gnome-look.org/content/show.php/download_opensubtitle?content=68085
with several additions (better hash generation, simultaneous search, cli, gtk and kde version, better error handeling, various fixes)

File (click to download) Version Description Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
GPLv3
version
3.6
updated Nov 29 2018
added Jul 05 2010
downloads today
0
page views today 17