public IEnumerable <byte[]> DownloadPages(int ID) { foreach (var PageUrl in GetChapterPages(ID)) { yield return(PageUrl.TryDownload(Referer)); } }
public IEnumerable <byte[]> DownloadPages(int ID) { foreach (var PageUrl in GetChapterPages(ID)) { var Page = PageUrl.TryDownload(Referer: CurrentUrl); if (Page == null && CFData != null) { Page = PageUrl.TryDownload(CFData, Referer: CurrentUrl); } if (Page == null) { CFData = JSTools.BypassCloudflare(PageUrl); Page = PageUrl.TryDownload(CFData, Referer: CurrentUrl); } yield return(Page); } }