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.
User avatar
eduo
Posts: 716
Joined: Sat Feb 10, 2007 1:40 am
Location: Information Technology
Contact: ICQ Website Yahoo Messenger

Unreliable results on search

Tue May 21, 2013 12:45 am

I'm not sure what's going on. I thought this was a problem on my client but then realised the server is introducing it.

Sometimes I get no results for moviehashes, even if for the same movie I can find by moviehash if searching differently.

1.-If I try this I get no results:

Query:

<?xml version="1.0" ?>
<methodCall>
<methodName>SearchSubtitles</methodName>
<params>
<param><value><string>091e3e81lsp6oa640jf3reaus3</string></value></param>
<param>
<value><array><data><value><struct>
<member>
<name>sublanguageid</name>
<value><string>spa</string></value>
</member>
<member>
<name>moviehash</name>
<value><string>eb3e44421be7d0c1</string></value>
</member>
<member>
<name>moviebytesize</name>
<value><double>1360763578.</double></value>
</member>
</struct></value></data>
</array>
</value></param></params></methodCall>

Response:

<?xml version="1.0" encoding="utf-8"?>
<methodResponse>
<params>
<param><value><struct><member><name>status</name>
<value><string>200 OK</string></value>
</member>
<member><name>data</name><value><boolean>0</boolean></value></member>
<member>
<name>seconds</name>
<value>
<double>0.008</double>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodResponse>

2.-If I try including the same movie along with a different one, I get results. I'm not getting an error back, just empty results.

It's very strange.
http://eduo.info/
[url=http://eduo.info/soleol/]OpenSubtitles from your desktop: SolEol for Mac/Windows/Linux[/url]
[url=http://forums.plexapp.com/index.php?showtopic=325&st=0&p=2480&#entry2480]My current episode processing work flow[/url].

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

Re: Unreliable results on search

Sat May 25, 2013 4:57 am

it seems xml data what are you sending is not correct. Why you are using dot in the end of filesize?

Code: Select all

<value><double>1360763578.</double></value>
I tried without dot and it works OK, I get 7 results back.

User avatar
eduo
Posts: 716
Joined: Sat Feb 10, 2007 1:40 am
Location: Information Technology
Contact: ICQ Website Yahoo Messenger

Re: Unreliable results on search

Sat May 25, 2013 10:36 am

it seems xml data what are you sending is not correct. Why you are using dot in the end of filesize?

Code: Select all

<value><double>1360763578.</double></value>
I tried without dot and it works OK, I get 7 results back.
Funny. It sems to be an artifact of my XML routines. I'll investigate.

The weird part is that most of the time it works. It seems to not work in only few scenarios. So much so that I've found it first now, after more than a year of using this routine. Most of the time it works but in some specific scenarios it seems to fail. All my filesizes have come come with a period for more than a year now. If there're more files in the query it gets results. If there's only one it fails sometimes but when it does it's always for the same file.

Example: This request has a dot:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?><methodCall><methodName>SearchSubtitles</methodName><params><param><value><string>c11nflvjn47u4k0ana4nng25i0</string></value></param><param><value><array><data><value><struct><member><name>sublanguageid</name><value><string>eng</string></value></member><member><name>moviehash</name><value><string>eb3e44421be7d0c1</string></value></member> <member><name>moviebytesize</name> <value><double>1360763578.</double></value></member> </struct></value></data></array></value></param></params></methodCall>
But I get proper results.
http://eduo.info/
[url=http://eduo.info/soleol/]OpenSubtitles from your desktop: SolEol for Mac/Windows/Linux[/url]
[url=http://forums.plexapp.com/index.php?showtopic=325&st=0&p=2480&#entry2480]My current episode processing work flow[/url].

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

Re: Unreliable results on search

Sun May 26, 2013 5:22 am

I found some small error in my code, try now and let me know, if it helps.

User avatar
eduo
Posts: 716
Joined: Sat Feb 10, 2007 1:40 am
Location: Information Technology
Contact: ICQ Website Yahoo Messenger

Re: Unreliable results on search

Sun May 26, 2013 12:08 pm

I found some small error in my code, try now and let me know, if it helps.
I also corrected my code to always remove the trailing decimal point (although it was acceptable in the XMLRPC definition of "double" it looked silly, so I removed it). I'll try with an older version and let you know.
http://eduo.info/
[url=http://eduo.info/soleol/]OpenSubtitles from your desktop: SolEol for Mac/Windows/Linux[/url]
[url=http://forums.plexapp.com/index.php?showtopic=325&st=0&p=2480&#entry2480]My current episode processing work flow[/url].

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

Re: Unreliable results on search

Wed May 29, 2013 6:04 am

looking forward for some info, if it works ok

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 3 guests