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.
amaarten
Posts: 8
Joined: Fri Dec 11, 2015 6:43 am

Search2 query inconsistent

Thu Mar 30, 2017 5:31 pm

Hey, when I want to perform a search by name using the xml output of the websites, the result is inconsistent:

e.g. Searching for "Star Wars":

Code: Select all

https://www.opensubtitles.org/en/search2/sublanguageid-all/moviename-star%20wars/xml
, the result is parsable xml.

When I change the name to "Karamba",

Code: Select all

https://www.opensubtitles.org/en/search2/sublanguageid-all/moviename-karamba/xml

The result is a website, not a xml page.

Is this a bug of opensubtitles?

User avatar
oss
Site Admin
Posts: 4482
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Re: Search2 query inconsistent

Tue Apr 04, 2017 4:52 pm

I will fix it.

it is caused because it returns just one result, and you are redirected to that result.

amaarten
Posts: 8
Joined: Fri Dec 11, 2015 6:43 am

Re: Search2 query inconsistent

Tue Apr 04, 2017 11:20 pm

Thanks!

For user friendliness, you can still forward the html requests.
Just not the xml requests.

User avatar
oss
Site Admin
Posts: 4482
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Re: Search2 query inconsistent

Wed Apr 05, 2017 1:02 am

sure, thats how it should work. (it was implemented like that in search, but bugged in search2)

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 4 guests