Page 1 of 1

REST API not working from macOS app?

Posted: Tue Mar 05, 2019 2:09 pm
by jogga
Hi,

Since some days my macOS app doesn't work with the REST API. Nothing changed in the app.

I'm just searching for subtitles like before and I get the web page xml back instead of the JSON answer???

https://rest.opensubtitles.org/search/q ... ageid-swe/ sending in my "Playr" app as "User-Agent" header field.

What has changed?

If I runt this command from the Terminal it works??? What's going on?

curl -A 'Playr' https://rest.opensubtitles.org/search/m ... c54e9cf314

My app is unusable in this state :-(

Best regards / Jörgen

Re: REST API not working from macOS app?

Posted: Tue Mar 05, 2019 7:32 pm
by jogga
It turns out that if the url ends with a "/" it doesn't work any longer. Something must have changed since this used to work before.

Re: REST API not working from macOS app?

Posted: Fri Mar 08, 2019 7:02 am
by oss
Hi

Hi

curl -A 'Playr' https://rest.opensubtitles.org/search/m ... c54e9cf314

works

curl -A 'Playr' https://rest.opensubtitles.org/search/m ... 54e9cf314/

doesnt work

curl -L -A 'Playr' https://rest.opensubtitles.org/search/m ... 54e9cf314/

works

Follow redirect is fixed, should be all good now, better to request without "/" on end, one redirect less (none of opensubtitles.org url have "/" on end)