Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MangaFox, fix getting page links #1700

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions baseunits/modules/MangaFox.pas
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down