API return disabled subtitles

For developers and developing site - suggestions, coding problems, API questions, new applications...
Forum rules
Under no circumstances is spamming or advertising of any kind allowed. Do not post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated or any other material that may violate others security. Profanity or any kind of insolent behavior to other members (regardless of rank) will not be tolerated. Remember, what you don’t find offensive can be offensive to other members. Please treat each other with the kind of reverence you’d expect from other members.
Failure to comply with any of the above will result in users being banned without notice. If any further details are needed, contact: “The team” using the link at the bottom of the forum page. Thank you.

API return disabled subtitles

Postby johnbkk » Sun Sep 16, 2012 11:31 am

While using XBMC Subtitles addon, I started getting "Error while extracting". Decided to try to figure out the issue, so I ran the query manually using the XMLRPC Debugger.

I got the results I wanted, but one of the subtitle was disabled. So although full information was returned, it was impossible to download using ZipDownloadLink

The search query: True+Blood+S05E07
The problem subtitle:
Code: Select all
<name>SubDownloadLink</name>
<string>http://dl.opensubtitles.org/en/download/filead/1953171460.gz</string>

<name>ZipDownloadLink</name>
<string>http://dl.opensubtitles.org/en/download/subad/4623635</string>

<name>SubtitlesLink</name>
<string>http://www.opensubtitles.org/en/subtitles/4623635/true-blood-in-the-beginning-en</string>


Is there any reason to return disabled subtitles that we can't download?

I think it should either not be returned or a parameter indicating it's disabled should be there (I couldn't find one).

Another option would be to add a parameter to the search request to not return disabled subtitles. Searched this the forum and the API, but couldn't find any talk about the above. Hope I didn't miss anything :)
johnbkk
 
Posts: 1
Joined: Sun Sep 16, 2012 11:16 am

Re: API return disabled subtitles

Postby oss » Thu Sep 27, 2012 5:39 pm

Hi,

thanks for this error bug report, it is fixed, of course search should work only on available subtitles.
User avatar
oss
Site Admin
 
Posts: 2208
Joined: Sat Feb 25, 2006 11:26 pm


Return to Developing

Who is online

Users browsing this forum: No registered users and 0 guests