New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download from Open Subtitles using their REST API #3920
Comments
USERS MUST MIGRATE ACCOUNTSOpen Subtitles opensubtitles.org is being rebuilt as opensubtitles.com. From the opensubtitles.com FAQ question
Thus the mandatory conversion from the Open Subtitles XMLRPC API to the REST API is not merely a "behind the scenes" technology change. This is a part of the migration from opensubtitles.org (XMLRPC) to opensubtitles.com (REST API). Open Subtitles is unable to automatically migrate user accounts from to the new opensubtitles.com site. Users must manually migrate their Open Subtitles account. From the opensubtitles.com FAQ question
As a part of this process Open Subtitles will require the account password to be changed. Once finished importing your account you will evenutally need to configure IINA with your new password. At the moment you only need to do that if you update your account on opensubtitles.org with the new password you configured for the account on opensubtitles.com. Foillow these instructions to update IINA:
|
This commit will: - Add a new OpenSubClient class - Change the OpenSub class to use the new client - Change the OpenSub default language from eng to en - Change name of provider from opensubtitles.org to opensubtitles.com - Add a new loggedIn property to OnlineSubtitle - Add a new logout method to OnlineSubtitle - Add a new iinaLogoutCompleted notification to AppData - Change AppDelegate to log out of the online subtitle provider during termination This is a temporary stopgap solution that updates the builtin legacy code in order to meet the end of 2023 deadline imposed by Open Subtitles for switching to the new REST API. The plan is still to replace all built-in code for downloading from online subtitle providers with plug-in implementations.
This commit will: - Add a new OpenSubClient class - Change the OpenSub class to use the new client - Change the OpenSub default language from eng to en - Change name of provider from opensubtitles.org to opensubtitles.com - Add a new loggedIn property to OnlineSubtitle - Add a new logout method to OnlineSubtitle - Add a new iinaLogoutCompleted notification to AppData - Change AppDelegate to log out of the online subtitle provider during termination This is a temporary stopgap solution that updates the builtin legacy code in order to meet the end of 2023 deadline imposed by Open Subtitles for switching to the new REST API. The plan is still to replace all built-in code for downloading from online subtitle providers with plug-in implementations.
* Close download from Open Subtitles using REST API, #3920 This commit will: - Add a new OpenSubClient class - Change the OpenSub class to use the new client - Change the OpenSub default language from eng to en - Change name of provider from opensubtitles.org to opensubtitles.com - Add a new loggedIn property to OnlineSubtitle - Add a new logout method to OnlineSubtitle - Add a new iinaLogoutCompleted notification to AppData - Change AppDelegate to log out of the online subtitle provider during termination This is a temporary stopgap solution that updates the builtin legacy code in order to meet the end of 2023 deadline imposed by Open Subtitles for switching to the new REST API. The plan is still to replace all built-in code for downloading from online subtitle providers with plug-in implementations. * Close download from Open Subtitles using REST API, #3920 This commit will: - Add a new OpenSubClient class - Change the OpenSub class to use the new client - Change the OpenSub default language from eng to en - Change name of provider from opensubtitles.org to opensubtitles.com - Add a new loggedIn property to OnlineSubtitle - Add a new logout method to OnlineSubtitle - Add a new iinaLogoutCompleted notification to AppData - Change AppDelegate to log out of the online subtitle provider during termination This is a temporary stopgap solution that updates the builtin legacy code in order to meet the end of 2023 deadline imposed by Open Subtitles for switching to the new REST API. The plan is still to replace all built-in code for downloading from online subtitle providers with plug-in implementations. * Use "en" by default if all preferred languages are not supported by OpenSubtitle --------- Co-authored-by: Hechen Li <lhc199652@gmail.com>
The changes have been merged into the IINA |
IINA 1.3.4 uses opensubtitles.com instead of opensubtitles.org. |
When I use the new API though IINA the results it returns are pretty far off from what I was getting with the old API. For example The.Sopranos.S06E14.Stage.5.720p.WEB-DL.h.264.DD5.1-NTb.mkv will return Sopranos 1x01. |
I checked that Sopranos, seems good to me:
anyway, I checked also IINA - would be great to have option for manual string search for movies/tv series really like REST implementation, devs, contact us, so we can feature article on blog.opensubtitles.com |
@opensubtitles Thanks for commenting! I believe the issue is with the IINA client. I had not noticed the Guessit API under utilities. Is the intent that the client use this API to extract information such as the season number and episode number to then pass that information as query parameters in the Search for subtitles I am currently testing changes do that. For the case at hand that correctly narrows the search results to subtitles for the specific episode. This is being discussed in the new open issue #4749. IINA 1.3.4 was rushed out to meet the deadline. We are currently working on the fixes that were planed for 1.3.4 and didn't get done in time. The plan is to finish those and make another release soon. This problem will be addressed in that release. I'm a junior IINA developer. I will let the senior developers know you would like them to contact you. On the lack of the ability to manually specify a search string, that is only one of several enhancements that should be made to this IINA feature. The plan was to replace the current code with a plugin using IINA's new plugin feature. But the timing did not work out. The plugin system is close to being released, but was not ready in time for this release. So the new code that uses the REST API is a temporary stopgap to meet the deadline. For that reason I did not add any enhancements to the IINA user interface. |
there was a temporary bug on our guessit system, it didn't detect the season & episodes properly for a few weeks. it's all fixed now, you can send your queries like "the sopranos s02e04" it'll be exactly the same as passing the season and episoode numbers separately |
@opensubtitles I confirmed searching for subtitles when playing "The.Sopranos.S06E14.Stage.5.720p.WEB-DL.h.264.DD5.1-NTb.mkv" using IINA 1.3.4 now returns results specific to that episode. I will backout my fix that was going into the next release that calls Guessit. I was wondering how this issue got past me as I was sure I had tested searching for a TV episode and confirmed it was working. I must have done that before the regression on the server occurred. |
What you want IINA to do:
Download from Open Subtitles using their new REST API.
What IINA does currently:
Downloads from Open Subtitles using their original XMLRPC API.
Why you think this should be added:
Because of this post by Open Subtitles: OpenSubtitles.org API deprecation and end of life which says:
And:
IINA has no choice but to switch to the new REST API before that deadlline.
Examples of other projects that have something similar:
N/A
The text was updated successfully, but these errors were encountered: