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.
swishly
Posts: 2
Joined: Tue Jun 06, 2017 7:51 pm

Linking moviehash to an existing subtitleId?

Tue Jun 06, 2017 8:30 pm

I went through the all the APIs, but I could not find a way to explicitly link a movie byte signature (movie hash + byte size) to an existing subtitle downloaded from opensubtitle.org

Here is what we are trying to do:
1. Application uses OS search API to get subtitles for a given movie byte signature --> the API returns an empty result set.
2. Application uses OS search API to get subtitles using imdb id --> the API returns a list of matching results
3. User will try the subtitles returned one by one:
3.a If the subtitle is matching the movie file, the user is expected to send positive feedback "yes! this subtitles is a match for this movie file" - at this point the app would like to be sending that feedback to the API by linking the movie byte signature to the subtitle identifier
3.b If not a match, the user will just go to the next subtitle
4. The next time the search API is used to get subtitles from the movie byte signature, the API should return a non-empty result set (everyone wins)

I suspect that the TryUploadSubtitles API may in fact achieve this result, but the API description does not mention the API having any side-effect, it's only described as a check before performing an upload.

Is it possible to link a movie byte signature to a specific subtitle from opensubtitles.org?

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

Re: Linking moviehash to an existing subtitleId?

Sat Jun 10, 2017 1:55 pm

Hi sorry to be not clear.

TryuploadSubtitles() was designed exactly for that. If subtitlehash exists and we dont have moviehash, then moviehash is linked to subtitle...

You can try it. Also it is good to mention, that subtitlehash will be different (in SearchResults and actual subtitle hash), because we are often adding some texts there. But we keep track of this, so it should work even with different subtitle hash

Dont worry, register, and upload subtitles, then you can update link...and then you can delete that subtitles if you want.

swishly
Posts: 2
Joined: Tue Jun 06, 2017 7:51 pm

Re: Linking moviehash to an existing subtitleId?

Sun Jun 11, 2017 3:09 am

That is great, Thanks! I will look into incorporating TryuploadSubtitles() into our app :)

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 1 guest