public override void download_one_scan(String link, String nb_page, String chapter, String path) { String[] content = HtmlRequest.get_html(link); foreach (String i in content) { if (i.IndexOf("onerror=\"javascript:rerender(this);\"") != -1) { String link_img = HtmlRequest.cut_str(i, "<img src=\"", "\" onerror"); int pos = link_img.LastIndexOf("."); int pos2 = link_img.LastIndexOf("?"); String ext = link_img.Substring(pos, pos2 - pos); String nb_chapter = chapter.ToString(); if (float.Parse(chapter, CultureInfo.InvariantCulture.NumberFormat) < 10) { nb_chapter = "0" + nb_chapter; } if (Int32.Parse(nb_page) < 10) { nb_page = "0" + nb_page; } if (link.IndexOf("javascript") == -1) { HtmlRequest.save_image(link_img, path + "chap " + nb_chapter + " page " + nb_page + ext); } return; } } }
public override void download_one_scan(String link, String nb_page, String chapter, String path) { String[] content = HtmlRequest.get_html(link); foreach (String i in content) { if (i.IndexOf("class=\"img-responsive-2\" style=\"cursor: pointer !important;\"") != -1) { String link_img = HtmlRequest.cut_str(i, "src=\"", "\" class"); int pos_point = link_img.LastIndexOf('.'); String ext = link_img.Substring(pos_point); String nb_chapter = chapter.ToString(); if (float.Parse(chapter, CultureInfo.InvariantCulture.NumberFormat) < 10) { nb_chapter = "0" + nb_chapter; } if (Int32.Parse(nb_page) < 10) { nb_page = "0" + nb_page; } HtmlRequest.save_image(link_img, path + "chap " + nb_chapter + " page " + nb_page + ext); } } }
public override void download_one_scan(String link, String nb_page, String chapter, String path) { String[] content = HtmlRequest.get_html(link); foreach (String i in content) { if (i.IndexOf("<img data-img=") != -1) { String link_img = HtmlRequest.cut_str(i, "src=\"", "\"/>"); int pos_point = link_img.LastIndexOf('.'); String ext = link_img.Substring(pos_point); String nb_chapter = ""; if (float.Parse(chapter, CultureInfo.InvariantCulture.NumberFormat) < 10) { nb_chapter = "0" + chapter.ToString(); } if (Int32.Parse(nb_page) < 10) { nb_page = "0" + nb_page; } if (chapter != "") { HtmlRequest.save_image(link_img, path + "chap " + nb_chapter + " page " + nb_page + ext); } else { HtmlRequest.save_image(link_img, path + "page " + nb_page + ext); } } } }