Ejemplo n.º 1
0
        public static VineThumbnail Parse(HtmlNode node)
        {
            var vine = new VineThumbnail();

            vine.Url       = node.SelectSingleNode("a").Attributes["href"].Value;
            vine.Title     = node.SelectSingleNode("a/header/h3").InnerText;
            vine.PosterUrl = node.SelectSingleNode("a/div/img").Attributes["src"].Value;
            vine.Author    = node.SelectSingleNode("a/footer/p").InnerText.Replace("By ", string.Empty);

            return(vine);
        }
Ejemplo n.º 2
0
        public static string GetUrl(VineThumbnail vine)
        {
            string vineUrl = vine.PosterUrl.Substring(vine.PosterUrl.LastIndexOf("/") + 1).Replace("jpg", "html");

            return(vineUrl);
        }