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.
torrentplay
Posts: 1
Joined: Tue Dec 30, 2008 3:48 pm

XML-RPC query for multiple titles

Tue Dec 30, 2008 4:20 pm

I'm trying to use the XML-RPC SearchSubtitles method in order to query for multiple movie names in a single HTTP request.
However, the response I’m getting references only a single movie name (the last one in the requests array).

Note that when I perform a request with multiple movie-hash/size queries then the response matches all the request elements.

Could there be a specific problem with multiple name queries?

This is the request XML I'm sending:
<?xml version="1.0"?>
<methodCall><methodName>SearchSubtitles</methodName>
<params><param><value>l7u4bp48t06ib7uhu9apcna3d2</value></param><param><value><array><data><value><struct><member><name>query</name><value>Wanted[2008]DvDrip-aXXo</value></member><member><name>sublanguageid</name><value>eng</value></member></struct></value><value><struct><member><name>query</name><value>Hancock[2008]DvDrip-aXXo</value></member></struct></value></data></array></value></param></params></methodCall>

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

Wed Dec 31, 2008 6:24 am

yes I know about this. Have to rewrite a little bit that function, but fulltext search is there as "bonus", I did not want to have it there, but...so for now use 1 query per request, or maybe you try put queries joined by "|" like "movie 1 | movie 2" - maybe it will work.

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 21 guests