public override void downloadScan(String link, int nb_page, Chapters chapitre, String path) { string[] content2 = HtmlRequest.get_html(link); foreach (String j in content2) { if (j.IndexOf("class=\"img-responsive\"") != -1) { MyPage p = new MyPage(nb_page, chapitre.getMax(), HtmlRequest.cut_str(j, "src=\"", "?u=\" class="), chapitre.getNumber(), chapitre.isChapter()); p.download(path); p = null; } } }
public override void downloadScan(String link, int nb_page, Chapters chapitre, String path) { string[] content2 = HtmlRequest.get_html(link); int reset = 0; while (content2.Length < 75 && reset < 5) { System.Threading.Thread.Sleep(1000); content2 = null; content2 = HtmlRequest.get_html(link); reset++; } foreach (String j in content2) { if (j.IndexOf("id=\"image\"") != -1) { MyPage p = new MyPage(nb_page, chapitre.getMax(), HtmlRequest.cut_str(j, "src=\"", "\" onload="), chapitre.getNumber(), chapitre.isChapter()); p.download(path); p = null; } } }