Exemple #1
0
        private static DataFilm_HDPHim.Models.Profile_FilmRela Get_Profile_FilmRela(string html)
        {
            DataFilm_HDPHim.Models.Profile_FilmRela i = new Models.Profile_FilmRela();
            i.Title = "Một số phim đã tham gia";
            var node = Getnode.GetOneTag(html, "ul", "class", "list-movie");

            foreach (var item in node.ChildNodes)
            {
                Models.FilmItem filmItem = new Models.FilmItem();
                var             thumb    = Getnode.GetValueHtmlToChird(item, new int[] { 0, 0 }, "style");
                thumb               = thumb.Replace("background:url(", "");
                thumb               = thumb.Remove(thumb.IndexOf(");"));
                filmItem.Thumb      = thumb;
                filmItem.UrlFilm    = Getnode.GetValueHtmlToChird(item, new int[] { 0 }, "href");
                filmItem.NameFilm_1 = Getnode.GetValueHtmlToChird(item, new int[] { 0, 1, 0 }, "");
                filmItem.NameFilm_2 = Getnode.GetValueHtmlToChird(item, new int[] { 0, 1, 1 }, "");
                filmItem.StatusFilm = Getnode.GetValueHtmlToChird(item, new int[] { 0, 1, 2 }, "");
                i.ListFilmItem.Add(filmItem);
            }
            return(i);
        }
Exemple #2
0
 public Profile()
 {
     List_Profile_FilmRela = new Profile_FilmRela();
 }
Exemple #3
0
 public Profile()
 {
     List_Profile_FilmRela = new Profile_FilmRela();
 }
Exemple #4
0
 private static DataFilm_HDPHim.Models.Profile_FilmRela Get_Profile_FilmRela(string html)
 {
     DataFilm_HDPHim.Models.Profile_FilmRela i = new Models.Profile_FilmRela();
     i.Title = "Một số phim đã tham gia";
     var node = Getnode.GetOneTag(html, "ul", "class", "list-movie");
     foreach (var item in node.ChildNodes)
     {
         Models.FilmItem filmItem = new Models.FilmItem();
         var thumb = Getnode.GetValueHtmlToChird(item, new int[] { 0, 0 }, "style");
         thumb = thumb.Replace("background:url(", "");
         thumb = thumb.Remove(thumb.IndexOf(");"));
         filmItem.Thumb = thumb;
         filmItem.UrlFilm = Getnode.GetValueHtmlToChird(item, new int[] { 0 }, "href");
         filmItem.NameFilm_1 = Getnode.GetValueHtmlToChird(item, new int[] { 0, 1, 0 }, "");
         filmItem.NameFilm_2 = Getnode.GetValueHtmlToChird(item, new int[] { 0, 1, 1 }, "");
         filmItem.StatusFilm = Getnode.GetValueHtmlToChird(item, new int[] { 0, 1, 2 }, "");
         i.ListFilmItem.Add(filmItem);
     }
     return i;
 }