Page 1 of 1

Search2 query inconsistent

Posted: Thu Mar 30, 2017 5:31 pm
by amaarten
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?

Re: Search2 query inconsistent

Posted: Tue Apr 04, 2017 4:52 pm
by oss
I will fix it.

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

Re: Search2 query inconsistent

Posted: Tue Apr 04, 2017 11:20 pm
by amaarten
Thanks!

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

Re: Search2 query inconsistent

Posted: Wed Apr 05, 2017 1:02 am
by oss
sure, thats how it should work. (it was implemented like that in search, but bugged in search2)