exebetche/vlsub

Migration to REST API?

Rainmaker52 opened this issue · 4 comments

As mentioned at https://trac.opensubtitles.org/projects/opensubtitles/wiki/DevReadFirst OpenSubtitles.org will stop offering their API in the near future:

OpenSubtitles.org API is deprecated and not possible to register new user agents anymore, we plan to turn off OpenSubtitles.org API by the end of 2023. Please use new, stable ready-to-use ​Open Subtitles REST API instead.

The REST API is documented here: https://opensubtitles.stoplight.io/docs/opensubtitles-api/e3750fd63a100-getting-started

As you might expect, it looks to be HTTPS only. I'm not sure whether http_req() in the script could be rewritten for HTTPS. I don't believe this is easy - vlc.net.* does not seem to have anything available for encryption.

Most important other changes seem to be:

  • A key only gives access to 5 downloads / day / IP
  • A user account has 10 downloads (but requires users to signup)
  • They mention a "VIP" user level, possibly indicating paid plans?

(I am already getting 401 errors. Not sure whether this is related or not, but while troubleshooting that, I came across this information. Thought it could help)

Same here, 401 error on searching.
image
I guess the APIs are no longer working.

Same here, 401 error on searching. image I guess the APIs are no longer working.

Register for an account on open subtitles, and enter the credentials in VLSub to "fix" that.

The API, as far as I can tell, is still available. But that wasn't the point of this issue.