kdeServiceMenuOpenSubtitles

Dolphin Service Menus

Source (required if based on other people's work): https://github.com/ariacorrente/kdeServiceMenuOpensubtitles

0
Score 52%
Description:

This is a KDE service menu to download subtitles from OpenSubtitles.org.

- right click on a video file in Dolphin
- open the "Actions" sub-menu
- select the "download from OpenSubtitles.org" action , it will show you a list of subtitles
- select one subtitle from the list and it will be downloaded

The subtitle file will be saved with the same name as the video but keeping the subtitle extension, so your player will detect automatically the subtitle. The search is done extracting an hash from the file, this way you will get the correct subtitle for sure.

The default language is English, you can change it in the python file.

Thank you to http://opensubtitles.org for that great service, it's also possible to help them uploading subtitles.

Original code is from download_opensubtitle (http://kde-look.org/content/show.php/download_opensubtitle?content=65444), I only fixed some stuff and made some little changes here and there.

Install

KDE3: Copy download_subtitle.desktop to ~/.kde/share/apps/konqueror/servicemenus

KDE4: Copy download_subtitle.desktop to ~/.kde/share/kde4/services

KDE5: Copy download_subtitle.desktop to ~/.local/share/kservices5/ServiceMenu

Copy download_subtitle.py to some directory in your PATH

Dependencies

If you have KDE installed all the required tools are usually already installed:

- python
- wget
- kdialog: in debian based distros kdialog is usually available inside the "kde-baseapps-bin" package.
- qdbus
Last changelog:

Small fixes 1 year ago

2017-04-24:
- specified python2 as interpreter
- fixed --geometry parameter not supported by current kdialog
- added a progress bar for the login phase
- fixed info about installation paths in the readme and removed the installation and uninstallation script because they where not reliable for KDE5.

dimkard

2 years ago

Thanks for your work.

So as the script to work in Plasma 5, the right place to add the .desktop file is:
/usr/share/kservices5/ServiceMenus/

In Manjaro, since /usr/bin/python is a link to python3, I have changed the 1st line of the script to #!/usr/bin/python2. Otherwise, the script fails.

Report

C

ariacorrente

1 year ago

Thanks for the information, I updated the script and the description.

Report

cipricus

7 months ago

Although search by hash is more precise, it often gets zero results. Is it possible to have a search by name (less precise but much more results, including a good match 95% of the time)?

Report

Small fixes 1 year ago

2017-04-24:
- specified python2 as interpreter
- fixed --geometry parameter not supported by current kdialog
- added a progress bar for the login phase
- fixed info about installation paths in the readme and removed the installation and uninstallation script because they where not reliable for KDE5.

Previous: 3 years ago

[li]- 2015-08-13: fix detection of missing dependency. The script is working fine in KDE5.[/li]
[li]2015-03-12: add a real user agent authorized by OpenSubtitles.org so the script will be more reliable.[/li]
[li]2013-12-27: Updated to work with the changed opensubtitles.org API and some dialogs to have a better feeling about what the script is doing. Added support for kde4, you will find the correct desktop file for your kde version inside the package[/li]

File (click to download) Version Description Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
version
1.0.2
updated Feb 19 2018
added Mar 15 2015
downloads today
0
page views today 3
System Tags addon