Crawler.MovieCrawler.GetPosters C# (CSharp) Méthode

GetPosters() private méthode

private GetPosters ( string html, string movieName, List &posterPath, string &thumbnailPath ) : List
html string
movieName string
posterPath List
thumbnailPath string
Résultat List
        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;
        }