Пример #1
0
            protected override async Task <ICollection <BasicMovieInfo> > ParseFirstPage()
            {
                var html = await WebHttp.GetHtmlDocument(new Uri(string.Format(PageFormat, CurrentPage)));

                var pages = html.DocumentNode.SelectSingleNode("//div[@class='wp-pagenavi']/span/text()")
                            .ThrowExceptionIfNotExists("Pages root element");

                var match = SharedRegex.EnglishPageMatchRegex.Match(pages.InnerText);

                if (match.Success)
                {
                    SetTotalPages(int.Parse(match.Groups[2].Value, CultureInfo.InvariantCulture));
                }

                return(DivXOnlineMovieProvider.ParsePage(html));
            }
Пример #2
0
            protected override async Task <ICollection <BasicMovieInfo> > ParsePage(int page)
            {
                var html = await WebHttp.GetHtmlDocument(new Uri(string.Format(PageFormat, CurrentPage)));

                return(DivXOnlineMovieProvider.ParsePage(html));
            }