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.
mqojdn
Posts: 5
Joined: Thu Jan 03, 2013 7:43 pm

Strange problem with XML-RPC

Thu Jan 03, 2013 8:20 pm

I've uploaded these subs http://www.opensubtitles.org/en/subtitl ... ch-doll-en with that Oscar app.
The movie hash is 17b579c5d07e7d11.
And indeed the search finds them just fine: http://www.opensubtitles.org/en/search/ ... c5d07e7d11.
The built-in search in the Oscar app is also able to get them from the site with that hash.

However when I'm trying to get these working with PS3 Showtime, I'm getting an empty response. The request is correct and the subs are working for any other movies, except this one.
Here the request and an empty response: http://pastie.org/private/yeunumpdyk86js0qpg8wjg.
For any other movie I'm getting the subs correctly. And the request is exactly the same. For example: http://pastie.org/private/fcaqomqcud48dhcs1mk1a.

Any ideas?

Update:
Played a bit with http://www.opensubtitles.org/addons/xml-rpc/debugger/ and found that the search fails for <int>2340370335</int> but works if I change that to <double>2340370335</double>.
Should that be considered a bug? Cause 2340370335 is within the 32 bit integer length.

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

Re: Strange problem with XML-RPC

Sat Jan 05, 2013 11:04 am

yes, it is strange. XML-RPC is handled by PHP library, and I get just wrong number. To be on the safe side (and I added that recently to trac), send everything as STRING.

http://trac.opensubtitles.org/projects/ ... iki/XMLRPC

Read Common Errors section
"always pass all Method Parameters as string, because some unwanted conversion can occur. For example moviebytesize pass as string "4249049694" and NOT as int 4249049694."

mqojdn
Posts: 5
Joined: Thu Jan 03, 2013 7:43 pm

Re: Strange problem with XML-RPC

Sun Jan 06, 2013 2:09 am

Posted an issue at the Showtime site https://www.lonelycoder.com/redmine/issues/1500, so hopefully they would fix that.
In the meantime, would it be possible to fix something on your side?

mqojdn
Posts: 5
Joined: Thu Jan 03, 2013 7:43 pm

Re: Strange problem with XML-RPC

Sun Jan 06, 2013 10:28 pm

More problems with the XML-RPC requests.

If I check the site for subs by a movie hash:
http://www.opensubtitles.org/en/search/ ... 7eeb5b9d03

It finds the right file: http://www.opensubtitles.org/en/subtitles/4767299.

But if I try to get these through RPC (same movie hash):

Code: Select all

<name>moviehash</name> <value><string>20d3007eeb5b9d03</string></value> <name>moviebytesize</name> <value><string>418925397</string></value>
It returns that link: http://www.opensubtitles.org/en/subtitles/4764737
And those subs are actually disabled on the site...

Is it possible to get things working here?

mqojdn
Posts: 5
Joined: Thu Jan 03, 2013 7:43 pm

Re: Strange problem with XML-RPC

Tue Jan 08, 2013 6:46 am

Apparently it takes a day or so to get the XML-RPC server updated.
Everything is working at last. Apart from the INT issue.

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

Re: Strange problem with XML-RPC

Tue Jan 08, 2013 8:25 am

I understand. I will try again check what I can do from my side.

EDIT: ok, please try to test it, I change in sent XML all integers to strings...should help. Also some clients (as for example XML-RPC extension for PHP) needs to create xml using strings, because unsigned to signed conversion is made.

mqojdn
Posts: 5
Joined: Thu Jan 03, 2013 7:43 pm

Re: Strange problem with XML-RPC

Tue Jan 08, 2013 5:37 pm

Working fine! Thanks!

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

Re: Strange problem with XML-RPC

Thu Jan 10, 2013 10:59 am

Good to know! Thanks.

Return to “Programs using OS”

Who is online

Users browsing this forum: No registered users and 21 guests