2009-07-06, 21:56
I noticed that my app wants to connect to thetvdb.com as soon as it starts. I think it happens when my code call your lib to load the scrapers.
Basically this section from your example...
Is there a reason for that?
Basically this section from your example...
Code:
DirectoryInfo scrapersDir = new DirectoryInfo(scraperPath);
foreach (FileInfo scraper in scrapersDir.GetFiles("*.xml"))
{
try
{
XDocument xScraperXML = XDocument.Load(scraper.FullName);
if (xScraperXML.Root.Attribute("content").Value == "movies") movieSource.Add(new ScraperInfo(scraper.FullName));
if (xScraperXML.Root.Attribute("content").Value == "tvshows") tvShowSource.Add(new ScraperInfo(scraper.FullName));
if (xScraperXML.Root.Attribute("content").Value == "albums") albumSource.Add(new ScraperInfo(scraper.FullName));
if (xScraperXML.Root.Attribute("content").Value == "musicvideos") musicVideoSource.Add(new ScraperInfo(scraper.FullName));
} catch { errors = true; }
}
Is there a reason for that?