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.
lodder
Posts: 2
Joined: Wed Feb 23, 2011 12:56 pm

Help with API SearchSubtitles - imdbid

Wed Feb 23, 2011 1:12 pm

Hi,

i'm new to the API of opensubtitles but I was testing with an Anonymous login and useragent "OS Test User Agent".

Doing searchSubtitles with imdbid and always get this result: {seconds=0.024, status=200 OK, data=false}
What I send: [0l9vi6q4dfncmptfp28is13k65, {sublanguageid=dut,eng, imdbid=120347}]


I'm doing something wrong?

I'm usign java please help me out.

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

Re: Help with API SearchSubtitles - imdbid

Mon Feb 28, 2011 6:18 am

I tried it and it works here:

Code: Select all

Array ( [status] => 200 OK [data] => Array ( [0] => Array ( [MatchedBy] => imdbid [IDSubMovieFile] => 0 [MovieHash] => 0 [MovieByteSize] => 0 [MovieTimeMS] => 0 [IDSubtitleFile] => 26812 [SubFileName] => Tomorrow Never Dies.srt [SubActualCD] => 1 [SubSize] => 74514 [SubHash] => 56b33afe3128c65c3c8641ff130d8e97 [IDSubtitle] => 23242 [UserID] => 39061 [SubLanguageID] => eng [SubFormat] => srt [SubSumCD] => 1 [SubAuthorComment] => [SubAddDate] => 2002-04-30 00:00:00 [SubBad] => 0 [SubRating] => 10.0 [SubDownloadsCnt] => 1201 [MovieReleaseName] => Tomorrow Never Dies (1997) [IDMovie] => 2062 [IDMovieImdb] => 120347 [MovieName] => Tomorrow Never Dies [MovieNameEng] => Bond 18 [MovieYear] => 1997 [MovieImdbRating] => 6.4 [UserNickName] => lpt00 (a) [ISO639] => en [LanguageName] => English [SubComments] => 0 [SubHearingImpaired] => 0 [UserRank] => bronze member [SubDownloadLink] => http://dl.opensubtitles.org/en/download/file/26812.gz [ZipDownloadLink] => http://dl.opensubtitles.org/en/download/sub/23242 [SubtitlesLink] => http://www.opensubtitles.org/en/subtitles/23242/tomorrow-never-dies-en ) [1] => Array...
you must be doing something wrong. Maybe params...

I send them:

Code: Select all

'args' => array( $token, array( array('sublanguageid' => 'dut,eng','imdbid' => '120347') )

lodder
Posts: 2
Joined: Wed Feb 23, 2011 12:56 pm

[Solved] Re: Help with API SearchSubtitles - imdbid

Tue Mar 01, 2011 8:51 am

Thx I have solved.....

How can I register my user agent?


Return to “Developing”

Who is online

Users browsing this forum: No registered users and 21 guests