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.
Khorynthium
Posts: 4
Joined: Wed Dec 07, 2016 10:53 pm

[XML-RPC] Inconsistencies between API and website search results

Wed Dec 07, 2016 11:07 pm

Hi. Faced a strange issue. Couple of hours ago uploaded russian subtitles for a movie and right after that tried to watch It in KODI, but failed to find my subtitle file in search results. Guessed that It's just some kind of cache lag, but now It looks like I was wrong. I still don't see this subtitles in API search results for rus lang code nor with empty language filter. Funniest thing that I see It on website.
To avoid possible issues from KODI addon side I tested this using XML-RPC client (chrome extension).

Thanks in advance.

User avatar
SmallBrother
Site Admin
Posts: 3724
Joined: Sun Mar 04, 2012 12:59 pm
Location: Somewhere on this globe

Re: [XML-RPC] Inconsistencies between API and website search results

Thu Dec 08, 2016 12:00 am

This might not be an issue of Kodi, but just a general case.
If you uploaded the subs manually, there is (probably) no hash code and so the subs are invisible for automated searches, but they do 'exist' and are possible to find on the web site manually.
That's why it is recommended to use software to upload, 'even' Subtitle Edit with the upload add-on or the Uploader of vankasteelj.
Nowadays a VPN is a must for everyone. A VPN allows you safe surfing and protects you against spying governments and companies.
I advise AirVPN - from € 2,75 per month. Click the below banner for more info.


Image

Khorynthium
Posts: 4
Joined: Wed Dec 07, 2016 10:53 pm

Re: [XML-RPC] Inconsistencies between API and website search results

Thu Dec 08, 2016 12:11 am

I've tried to find It with "SearchSubtitles(<token>, [{"sublanguageid":"rus", "query":"snouden"}])" method call (wrote "snouden" wrong intentionally, this is how srt and video file called). It works fine If I set "eng" lang code, but I get nothing for "rus". Is there any chance to find find this file by name? Or It just filtered out on service side because of empty hash?

User avatar
SmallBrother
Site Admin
Posts: 3724
Joined: Sun Mar 04, 2012 12:59 pm
Location: Somewhere on this globe

Re: [XML-RPC] Inconsistencies between API and website search results

Thu Dec 08, 2016 12:44 am

To be honest, the API is not quite my speciality.
But do you mean this one: http://www.opensubtitles.org/en/subtitl ... snowden-ru ?
This subtitle doesn't have a hash code.
So you will be able to find on the web, but not using the API.

For English you will get two results, using API as well as the website, because both subtitles have a hash code:
http://www.opensubtitles.org/en/search/ ... uageid-eng

So it all makes sense...

The snouden/snowden makes it a bit complicated, but in this case (no hash) it doesn't matter (I think).
Nowadays a VPN is a must for everyone. A VPN allows you safe surfing and protects you against spying governments and companies.
I advise AirVPN - from € 2,75 per month. Click the below banner for more info.


Image

Khorynthium
Posts: 4
Joined: Wed Dec 07, 2016 10:53 pm

Re: [XML-RPC] Inconsistencies between API and website search results

Thu Dec 08, 2016 1:09 am

Thanks, now it makes sense.

User avatar
SmallBrother
Site Admin
Posts: 3724
Joined: Sun Mar 04, 2012 12:59 pm
Location: Somewhere on this globe

Re: [XML-RPC] Inconsistencies between API and website search results

Thu Dec 08, 2016 9:51 am

You could disable your subtitle and then re-upload it using Subtitle Edit (including the upload add-on) or the uploader of vankasteelj.
Provided you have the video file next to it, your upload will then have a hash code.

Or you just wait, eventually a hash code will be connected to it (because others will submit it).
Nowadays a VPN is a must for everyone. A VPN allows you safe surfing and protects you against spying governments and companies.
I advise AirVPN - from € 2,75 per month. Click the below banner for more info.


Image

Khorynthium
Posts: 4
Joined: Wed Dec 07, 2016 10:53 pm

Re: [XML-RPC] Inconsistencies between API and website search results

Thu Dec 08, 2016 9:55 am

Well, I've "slept" with this idea, and now have a certain concerns about this. I even forget when I downloaded video last time. For last 5 (i think) years I just go to some streaming service and watch It right from the net. And this particular case is not exceptional. But now, if I want to watch this movie with subtitles I have to download It with some tricky way ('cause streaming services don't like when users download files from them and make It as hard as possible) just to upload subtitles with hash code.

BTW Kodi addon doesn't use hash search even for local files, and may be It won't be so bad to serve subtitles without has code over API also. What do you think? Is It any chance that you will drop this limitation?

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 24 guests