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.
agonzalezro
Posts: 8
Joined: Sun Sep 04, 2011 2:47 pm

Always get 'data': False after use SearchSubtitles

Sun Sep 04, 2011 2:55 pm

Hi!

First of all I want to present my self because I'm new here :) My name is Alex and I'm trying to create a python wrapper for the opensubtitles api. The beginning code is here: https://github.com/agonzalezro/python-opensubtitles

If you are familirialized with python you can take a view to my tests at github. At the momment I can login without problem (and get the token) and logout too, but when I try SearchSubtitles the returned data is: {'status': '200 OK', 'seconds': 0.005, 'data': False}

I'm calling the SearchSubtitles function with this info:
- sublanguageid: 'all'
- moviehash: 'dc94b5c77d8b733a'
- moviebytesize: 1936808633L but I tried too casting to string '1936808633'

Any idea what could be happen? Here you can see the function code: https://github.com/agonzalezro/python-o ... les.py#L30

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

Re: Always get 'data': False after use SearchSubtitles

Tue Sep 06, 2011 4:43 pm

hi,

I am not a python programmer, but it should return something:
http://www.opensubtitles.org/en/search/ ... c77d8b733a

maybe the way how you insert params there ?

check also this:
http://trac.opensubtitles.org/projects/ ... mlRpcIntro
and most important: http://trac.opensubtitles.org/projects/ ... hSubtitles

let me know, if it is working. We need officials wrappers.

agonzalezro
Posts: 8
Joined: Sun Sep 04, 2011 2:47 pm

Re: Always get 'data': False after use SearchSubtitles

Wed Sep 07, 2011 8:14 pm

Lo he logrado solucionar :) En vez de un diccionario el xmlrpc necesitaba una lista, así que de momento sigo trabajando en el wrapper, espero tener algo pronto!

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 23 guests