Exemplo n.º 1
0
        public static async Task <IArticle> Collect(string uri)
        {
            string magic       = Regex.Match(uri, "(\\d+)").Value;
            string html_source = await Task.Run(() => NetCommon.DownloadString(HiyobiCommon.GetInfoAddress(magic)));

            HitomiArticle article = HiyobiParser.ParseGalleryConents(html_source);

            return(article);
        }
        public ISeries ParseSeries(string html)
        {
            var result = new HiyobiNonHSeries();

            result.Title = HiyobiParser.ParseNonHTitle(html);
            //result.Thumbnail = MangashowmeParser.ParseThumbnail(html);
            result.Articles = HiyobiParser.ParseNonHArticles(html).OfType <IArticle>().ToList();
            result.Archive  = result.Articles.Select(x => HiyobiCommon.GetDownloadMangaImageAddress((x as HiyobiArticle).Magic)).ToArray();
            return(result);
        }