-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans  .- Knowledge Base  . 

download_opensubtitle

   0.4  

KDE Service Menu

Score 76%
download_opensubtitle
zoom


download_opensubtitle
zoom


Link:  http://
Downloads:  1382
Submitted:  Sep 1 2007
Updated:  Dec 28 2013

Description:

This is a service menu to download subtitles from opensubtitle.org

just right click on a video file -> actions -> 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

- To install:
KDE3: Copy download_subtitle.desktop to ~/.kde/share/apps/konqueror/servicemenus
KDE4: Copy download_subtitle.desktop to ~.kde/share/kde4/services/ServiceMenus
Copy download_subtitle.py to some dir of your path (i.e. ~/bin)

- Dependencies:
python
wget
kdialog

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




Changelog:

Added support for the new OpenSubtitles API - Thanks Nicola Felice!




LicenseGPL
Send to a friend
Subscribe
Other  Apps  from Hirs
Report inappropriate content



goto page: prev   1  2 

-

 script crashes

 
 by oeglesius on: Jul 13 2008
 
Score 50%

When I try downloading subtitles with this script, it crashes with the following error message:

Quote:

Traceback (most recent call last):
File "download_opensubtitle.py", line 64, in <module>
token = session["token"]
KeyError: 'token'


Any ideas what went wrong?

Thanks,
Stefan


Reply to this

-
.

 [SOLVED] Re: script crashes

 
 by eneko on: Aug 4 2010
 
Score 63%

URL of the opensubtitles.com API has changed, you must correct this in download_opensubtitle.py:

Line 56:

BEFORE (wrong)
server = ServerProxy("http://www.opensubtitles.org/xml-rpc")

AFTER (correct)
ServerProxy("http://api.opensubtitles.org/xml-rpc")

Changing the URL solved the problem for me, hope it helps anyone else.

Nice work Hirs!

Eneko


Reply to this

-

 Always an error

 
 by danux on: Apr 29 2009
 
Score 50%

I try the script, but it always crushes... it only displays a dialgobox saying "An Error ocurred".... I tryed to run it from Konsole and I get the same error, but no explanation about what could it be...


Reply to this

-
.

 Howto install easily v0.3

 
 by zipizap123 on: Nov 21 2010
 
Score 50%

The script version 0.3 (last updated in Jan 17 2009) was proved to work in KDE4 (KDE4.4.2), with the following procedure for Kubuntu (or any other debian/ubuntu based system)

1- Download the script using this page "download" button

2- Open a console in the folder where you downloaded the script

3- Untar the downloaded file (it will create a directory named "download_opensubtitle/".). Type in the console:
[b]
tar -zxvf 65444-download_opensubtitle.tar.gz"
[\b]

4- Install the Service-menu-script file to the correct location (the following destination directory is for KDE4. For KDE3 it is different). Type in the console:
[b]
ServiceMenu_script_file_kde4="download_opensubtitle/kde4/download_opensubtitle.desktop"
Destination_dir_kde4="$HOME/.kde/share/kde4/services/ServiceMenus"
mkdir -p $Destination_dir_kde4
cp -v $ServiceMenu_script_file_kde4 $Destination_dir_kde4
[\b]

4.99- At the current version 0.3 of the script there is an error in line 56 (as explained by <<eneko>> in the above comments) of the python file, and it needs to be corrected so that it works. Type this in the console to correct it:
[b]
sed --in-place 's_http://www.opensubtitles.org/xml-rpc_http://api.opensubtitles.org/xml-rpc_g' download_opensubtitle/download_opensubtitle.py
[\b]

5- Install the python file to "/usr/local/bin"
[b]
Python_file_kde4="download_opensubtitle/download_opensubtitle.py"
cp -v $Python_file_kde4 /usr/local/bin
[\b]

6- Check that your system has all the needed dependencies (most probably it will already have them installed, but if not just you can install them this way). Type this in a console, inserting your password when asked:
sudo apt-get install wget python



And you are done - it will be working by now, try it in konqueror :)

My respects to the creator and to eneko for the great sharings - this post is intended to make an updated resume of how to make this service-menu-script work without worries.

Hope to see this comment replied some day with something like "thanks" or maybe even with a "no-more-need-for-this-as-the-script-has-been-updated-by-author" :)

zipizap


Reply to this

-
.

 Howto install easily v0.3

 
 by zipizap123 on: Nov 21 2010
 
Score 50%

The script version 0.3 (last updated in Jan 17 2009) was proved to work in KDE4 (KDE4.4.2), with the following procedure for Kubuntu (or any other debian/ubuntu based system)

1- Download the script using this page "download" button

2- Open a console in the folder where you downloaded the script

3- Untar the downloaded file (it will create a directory named "download_opensubtitle/".). Type in the console:
[b]
tar -zxvf 65444-download_opensubtitle.tar.gz"
[\b]

4- Install the Service-menu-script file to the correct location (the following destination directory is for KDE4. For KDE3 it is different). Type in the console:
[b]
ServiceMenu_script_file_kde4="download_opensubtitle/kde4/download_opensubtitle.desktop"
Destination_dir_kde4="$HOME/.kde/share/kde4/services/ServiceMenus"
mkdir -p $Destination_dir_kde4
cp -v $ServiceMenu_script_file_kde4 $Destination_dir_kde4
[\b]

4.99- At the current version 0.3 of the script there is an error in line 56 (as explained by <<eneko>> in the above comments) of the python file, and it needs to be corrected so that it works. Type this in the console to correct it:
[b]
sed --in-place 's_http://www.opensubtitles.org/xml-rpc_http://api.opensubtitles.org/xml-rpc_g' download_opensubtitle/download_opensubtitle.py
[\b]

5- Install the python file to "/usr/local/bin"
[b]
Python_file_kde4="download_opensubtitle/download_opensubtitle.py"
cp -v $Python_file_kde4 /usr/local/bin
[\b]

6- Check that your system has all the needed dependencies (most probably it will already have them installed, but if not just you can install them this way). Type this in a console, inserting your password when asked:
sudo apt-get install wget python



And you are done - it will be working by now, try it in konqueror :)

My respects to the creator and to eneko for the great sharings - this post is intended to make an updated resume of how to make this service-menu-script work without worries.

Hope to see this comment replied some day with something like "thanks" or maybe even with a "no-more-need-for-this-as-the-script-has-been-updated-by-author" :)

zipizap


Reply to this

-

 Re: Howto install easily v0.3

 
 by zipizap123 on: Nov 21 2010
 
Score 50%

well, my previous post looks horrible - the BBCode formating is not working and I can't do anything to fix it, not at my control...

simply ignore completely all the "[b]" and "[\b]" and it will work


Reply to this

-

 Not working for me

 
 by siavash8 on: Apr 17 2011
 
Score 50%

I did everything that zipizap123 has written and still it doesn't work. When I clock on Download subtitle from opensubtitles.net in the service menu, a task titled "Download Subtitles from opensubtitle" opens for a few seconds, no window, only visible in the task manager, and then it automatically closes without any error or result. Any solution?


Reply to this

-

 

 
 by joopbraak on: May 15 2011
 
Score 50%

Try changing
session = server.LogIn("","","en","python")
to
session = server.LogIn("","","en","OS Test User Agent")



Reply to this

-

 Re:

 
 by siavash8 on: May 29 2011
 
Score 50%

Thanks. It solved the problem.


Reply to this

goto page: prev   1  2 

Add commentBack






-
-
How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

resultmore
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2003-2014 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.