drmadgr / imdb-api

Automatically exported from code.google.com/p/imdb-api
0 stars 0 forks source link

Error: StartIndex cannot be less than zero #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use this search query:

manag.IMDbSearch(0, "Full Frame Documentary", 0, -1, 1, -1, new bool[11] { 
true, true, false, false, false, false, false, false, false, false, false 
});

What is the expected output? What do you see instead?
I get an error:
"StartIndex cannot be less than zero. Parameter name: startIndex"

What version of the product are you using? On what operating system?
3.1, Vista 32 bit

Please provide any additional information below.
Stack Trace:
   at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 
length, Boolean fAlwaysCopy)
   at System.Text.StringBuilder.ToString(Int32 startIndex, Int32 length)
   at IMDBDLL.IMDB.parseTitlePage(XmlDocument xmlDoc, Boolean[] fields, 
Int32 media, Int32 actorN, Int32 sSeas, Int32 eSeas)

Original issue reported on code.google.com by bfin...@gmail.com on 1 Dec 2008 at 6:13

GoogleCodeExporter commented 9 years ago
That happens because the query you are making doesn't retrieve a movie or a 
serie...
I will correct this sometime

Original comment by jpmassena@gmail.com on 9 Dec 2008 at 2:27