private List<string> GetPosters(string html, string movieName, ref List<string> posterPath, ref string thumbnailPath)
{
ImdbCrawler imdb = new ImdbCrawler();
posterPath = new List<string>();
HtmlAgilityPack.HtmlDocument htmlDoc = new HtmlAgilityPack.HtmlDocument();
htmlDoc.OptionFixNestedTags = true;
htmlDoc.LoadHtml(html);
if (htmlDoc.DocumentNode != null)
{
HtmlAgilityPack.HtmlNode bodyNode = htmlDoc.DocumentNode.SelectSingleNode("//body");
if (bodyNode == null)
{
Console.WriteLine("body node is null");
}
else
{
return imdb.GetMoviePosterDetails(bodyNode, movieName, ref posterPath, ref thumbnailPath);
}
}
return null;
}