Nautilus Scripts nautilus subtitles

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

1
Score 74.0%
Description:

OpenSubtitlesDownload.py is a small software written in python, built to help you quickly find and download subtitles for your favorite videos. It can be used as a nautilus script, or as a regular application working under GNOME or KDE desktop environments. You can also use it in full CLI mode (Command Line Interface) on your NAS, Raspberry Pi, macOS or wherever you want to bundle it really!

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, macOS and Windows.
- 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 and folders 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, a backup search using filename is performed.
- Download subtitles automatically if only one is available, choose the one you want otherwise.
- Download the subtitles file right next to the video file (need read/write permissions).
- Rename downloaded subtitles to match the video file. Possibility to add a language code (ex: movie_en.srt).

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

Use it:
- As a 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 4.0 1 month ago

- New feature: search subtitles files recursively by clicking on a folder!
- New feature: CLI on Windows should now work
- New feature: CLI usage with -i or --skip to skip search if an existing subtitles file is detected
- New feature: CLI usage with -o or --output to override subtitles download path
- Fixed KDE and kdialog support
- Minor bugfixes and security related improvements
- Minor GUI improvements

avil25

4 months ago

9 +

Report

lbdesign

8 months 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

JCA

8 months ago

9 +

Report

kccrog2

3 years ago

just what i've been looking for since ever

thanks

Report

sufit

3 years ago

perfect :)

Report

FriendlyTroll

5 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

5 years ago

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

Report

cvele

7 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

7 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

7 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

9 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

9 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

9 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

9 years ago

can i add more languages to download?

Report

C

Emericg

9 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 4.0 1 month ago

- New feature: search subtitles files recursively by clicking on a folder!
- New feature: CLI on Windows should now work
- New feature: CLI usage with -i or --skip to skip search if an existing subtitles file is detected
- New feature: CLI usage with -o or --output to override subtitles download path
- Fixed KDE and kdialog support
- Minor bugfixes and security related improvements
- Minor GUI improvements

OpenSubtitlesDownload version 3.6 8 months 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 5 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)

12345678910
6
product-maker avil25 Mar 23 2019 9 excellent
+
product-maker JCA Nov 29 2018 9 excellent
+
product-maker petitt Aug 27 2016 9 excellent
product-maker sufit Feb 20 2016 9 excellent
product-maker spacy01 Apr 18 2012 9 excellent
product-maker FernandoBasso Nov 15 2011 9 excellent
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
GPLv3
version
4.0
updated Jul 10 2019
added Jul 05 2010
downloads 24h
0
page views 24h 7
System Tags addon gplv3