FS#21545 - [subdl] does not work anymore. Maybe fixed

Attached to Project: Community Packages
Opened by ryuta (ryuta) - Sunday, 31 October 2010, 16:17 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Tuesday, 02 November 2010, 20:49 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jaroslav Lichtblau (Dragonlord)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

package version : 1.0.2-3

example :
subdl --lang=fre something.avi
Searching for subtitles for moviehash=817cbe63a47bdde1...
Traceback (most recent call last):
File "subdl", line 375, in <module>
main(sys.argv[1:])
File "subdl", line 351, in main
search_results = SearchSubtitles(file, options.lang)
File "subdl", line 149, in SearchSubtitles
data = results['data']
KeyError: 'data'

It seem the API of opensubtitles have changed.

I try to fix it and I join the result. But I've just tested the fix with the example above, so the fix can be incomplete.

Doc :
http://trac.opensubtitles.org/projects/opensubtitles/wiki/XMLRPC#ServerInfo
and http://trac.opensubtitles.org/projects/opensubtitles/wiki/DevReadFirst
   subdl (13.9 KiB)
This task depends upon

Closed by  Jaroslav Lichtblau (Dragonlord)
Tuesday, 02 November 2010, 20:49 GMT
Reason for closing:  Fixed
Additional comments about closing:  In version 1.0.3
Comment by Lukas Fleischer (lfleischer) - Monday, 01 November 2010, 11:25 GMT
ryuta: Did you try 1.0.3 from http://code.google.com/p/subdl/?
Comment by ryuta (ryuta) - Monday, 01 November 2010, 14:27 GMT
No, I've been based upon pacman -Qi who show "http://www.cubewano.org/subdl" as source URL, and it don't respond for sevral weeks.
If subdl have migrated to googlecode, someone have to change the URL of pacman -Qi by your URL.

I've just download the version you show from svn, and the modification are about the same.
There is a change to do to the version of google, changing the shabang from python to python2 and it work on an example.
Comment by ryuta (ryuta) - Monday, 01 November 2010, 14:31 GMT
"If subdl have migrated to googlecode, someone have to change the URL of pacman -Qi by your URL."
It seem to be more or less confirmed on https://code.google.com/p/subdl/ :
"Official support for subdl seems to have been dropped. This site is intended for the future use of subdl with community driven support. "
Comment by Lukas Fleischer (lfleischer) - Monday, 01 November 2010, 14:51 GMT
ryuta: Yes, this is why I asked. If the project has been dropped, we should either delete this package (or at least move it to the AUR) or change URLs to that Google Code project (which sounds more reasonable to me). Let's wait for Jaroslav's opinion.

Loading...