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.
lkuhnert
Posts: 2
Joined: Tue Jan 23, 2007 1:18 am

xml rpc api

Tue Jan 23, 2007 1:29 am

Is it possible to do a search by query string (e.g. name of the movie) via the xml-rpc interface?

So I'm looking for a function like this:
array SearchSubtitlesByString($token, $querystring)

If there isn't, is there a way to realize this in another way?

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

Tue Jan 23, 2007 1:33 am

no, it is not possible, and I will dont code that. Those queries are quite expensive to server. Please tell me why you need that.

Also try:
http://www.opensubtitles.org/en/search/ ... matrix/xml
http://www.opensubtitles.org/en/search/ ... /simplexml

lkuhnert
Posts: 2
Joined: Tue Jan 23, 2007 1:18 am

Tue Jan 23, 2007 3:10 am

Thank you! The two links you gave me provide all the information I need.
I am thinking about writing a plugin for MediaPortal, the xbmc spin-off for windows.

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

Tue Jan 23, 2007 11:08 am

I already heard of mediaportal, I am just installing it. I own and I use (my friends too...) xbox and XBMC. XBMC is one of the best thing I have seen. OK, you are welcome to make any plugin, but those fulltext searches are still expensive, so because I suggest to you only using XML-RPC API. There are some advantages and some disadvantages (obviously):
- XMLRPC uses special hash, so it is faster, better for user (he always find exact subtitle for his movie)
- Now, there are only around 15.000 hashes in db, so not every movie is hashed yet
- using webinterface is quite CPU expensive

OK, try to code something, ofcourse dont forget to put some backlink/logo, let us know. After some time you are welcome to code XMLRPC searching using hash, and uploading.

Look here for more info:
http://subdownloader.sourceforge.net/wi ... /Main_Page

There is hash sources, xmlrpc methods...and maybe you can use some code from SubDownloader. You will coded that in C++ ? It will be possible to use that plugin in XBMC/XBMC core?

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 25 guests