2009-07-06, 23:32
Quick bug report here. On my build, boolean settings are not working properly. The problematic code is in the ScraperSetting constructor:
The problem is that the bool.Parse.ToString returns an uppercased "True" and the scrapers apparently expect it to be lowercase. I added a .ToLower() at the end of that line and everything started working again.
I'll have lots more comments coming. Got my code ported over from the older version to the new one pretty easily modulo this settings problem.
Code:
if (string.IsNullOrEmpty(xmlelement.Value) != true)
{
if (_type == "bool")
{
_param = bool.Parse(xmlelement.Value).ToString();
}
else
{
{
_param = xmlelement.Value;
}
}
}
else
{
_param = _default;
}
The problem is that the bool.Parse.ToString returns an uppercased "True" and the scrapers apparently expect it to be lowercase. I added a .ToLower() at the end of that line and everything started working again.
I'll have lots more comments coming. Got my code ported over from the older version to the new one pretty easily modulo this settings problem.