2009-07-11, 13:23
Nicezia Wrote:Will edit it to log scraper return values
However what exactley is the error/failure, i haven't seen this error and can't fix it if i don't know the full details of it. it retrives fanart just fine for me.
It was http://www.themoviedb.org/ that was returning a server 500 error as someone else mentioned. Not error in your lib. What I was thinking though is that it would be nice if you could create a class one could access to query errors that occured.
For example,
Code:
public string GetDetails(string strResultsEntity)
Code:
//Exception handling Web
catch (System.Net.WebException wex)
{
if (LoggingEnabled)
{
IO.Log(ScraperLogFile, "WebException :" + wex.Message);
}
return null;
}
It was one of the XElement SecondPass = CustomFunctionParse(item2); calls that caused the exception. Can't remember if it was the first or second pass one.
Anycase, now that I think bout it, it might be hard to actually tell what went wrong as it could be a query to a server for trailers, or one for fanart or another server for posters. So it won't be easy knowing what to tell the user to turn off in the scraper settings.