From 746143361db56c4ba7e9c733d853ab241f3d210c Mon Sep 17 00:00:00 2001 From: Michal_Marszalek <1aam2am1@gmail.com> Date: Mon, 11 Mar 2019 23:32:09 +0100 Subject: [PATCH] MangaFox, fix getting page links --- baseunits/modules/MangaFox.pas | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/baseunits/modules/MangaFox.pas b/baseunits/modules/MangaFox.pas index 67b7b0ee6..f2b962cd0 100644 --- a/baseunits/modules/MangaFox.pas +++ b/baseunits/modules/MangaFox.pas @@ -109,15 +109,19 @@ function GetPageNumber(const DownloadThread: TDownloadThread; const AURL: String lst := TStringList.Create; try lst.CommaText := s; - if page > 1 then lst.Delete(0); PageLinks.AddStrings(lst); + page := PageLinks.Count + 1; finally lst.Free; end; + end else begin + key := ''; + Sleep(200); + Continue; end; end; if PageLinks.Count >= PageNumber then Break; - Inc(page); Sleep(3000); + Sleep(3000); end; end; finally