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