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.
Acoslavisa
Posts: 3
Joined: Tue May 12, 2020 6:47 pm

Re: [OS] API only for logged users

Tue May 12, 2020 7:08 pm

I recently registered an account/user agent for programmatically downloading subtitles for movies/TV shows (hobby project, just for me basically). I was using the API over at https://rest.opensubtitles.org/search .

Both the email and the post here say that the login request needs opensubtitles.org username and password. What actually happened for me is that I kept getting "401 Unauthorized" error, and I needed to create a new account over at opensubtitles.com .. Just noting that in case anyone else stumbles over that as well..

My main question(s): what's the relation between APIs at https://rest.opensubtitles.org/ and https://www.opensubtitles.com/api/ ?

Is the first one deprecated now?
Should I use the second one to get the authorization token that I should use when interacting with the first one?
Will I get banned if I keep using the first one without any authorization (the email says so, so I parked my little util until I made sure I was playing fair :))

Thanks in advance and thanks for everything you are doing here!

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

Re: [OS] API only for logged users

Wed May 13, 2020 6:36 am

Hi

yes, maybe it is time to get things into order:

1) api.opensubtitles.org/xml-rpc - this was first API introduced back in time and it is still main API used. Back in time there was 2 technologies - xml and json. We should make it into JSON obviously, but we choose XML over it. Not the most clever idea, but in that time it had a lot of sense to pick it up. This API is communicating with opensubtitles.org servers. This will be depreciated in future over .com REST api.

2) rest.opensubtitles.org - as subdomain suggest it is simple REST API, basically used for caching on Cloudflare, it supports minimal functions, but it can be used, it uses opensubtitles.org servers. This will be depreciated in future over .com REST api.

3) www.opensubtitles.com/api/ - this is our new DEVELOPMENT API, not ready for production, still work in progress, API endpoints will change, it is open for comments from developers - what we can make better. In future this will be our main API. It is using opensubtitles.com services, so if you want to use this one, you have to import your account from .org to .com or register new one.

to be clear:
www.opensubtitles.org is using own user system (account are not shared with other services)
www.opensubtitles.com is using own user system (account are not shared with other services - so one have to IMPORT his account)
forum.opensubtitles.org is using own user system (account are not shared with other services)

I hope this helps and maybe we can make this announcement/explanation sticky.

Acoslavisa
Posts: 3
Joined: Tue May 12, 2020 6:47 pm

Re: [OS] API only for logged users

Wed May 13, 2020 9:56 am

Thanks! It clarifies a fair bit. Where does that leave us regarding the new authentication mechanism? Is it mandatory only for those interacting with the API over http://www.opensubtitles.com/api/ ?

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

Re: [OS] API only for logged users

Wed May 13, 2020 10:39 am

not sure which one you mean.

But now ALL APIs (except rest.opensubtitles.org) require authentication, and also REST actually should be authenticated...

for most stable experience use xml-rpc for now

Acoslavisa
Posts: 3
Joined: Tue May 12, 2020 6:47 pm

Re: [OS] API only for logged users

Wed May 13, 2020 11:45 am

Got it, thanks!

Quaries
Posts: 1
Joined: Thu Jul 09, 2020 12:58 pm
Contact: Website Facebook Twitter

Re: [OS] API only for logged users

Thu Jul 09, 2020 2:24 pm

MeryRod wrote:Hello! I have a doubt.
I entered my user and password in PopCorn application and still without working.
It took some time? How it works.
Thank you!


Yes recently this was the issue, that even after adding the username and password subtitles was not working. But may be they fixes the error soon in the next update.

so if you are still facing the issue then please go and check for the update.

Another solution

You can use the custom Subtitles with VLC player and it works all the time.

Play the video in Popcorn Time with the VLC
Just go to the subtitles
Tap “add subtitles file”
Now go the downloaded subtitles file and then choose the srt file

All done,

And it always works 100% for me

Source

Return to “Programs using OS”

Who is online

Users browsing this forum: No registered users and 1 guest