Skip to content

Commit

Permalink
pecinta.komik, fix getimageurl
Browse files Browse the repository at this point in the history
  • Loading branch information
riderkick committed Aug 1, 2015
1 parent 27c3706 commit 97aa82d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion baseunits/modules/PecintaKomik.pas
Original file line number Diff line number Diff line change
Expand Up @@ -386,15 +386,21 @@ function GetImageURL(var DownloadThread: TDownloadThread; const URL: String;
procedure ScanParse;
var
i: Integer;
baseurl: String;
begin
baseurl := Module.RootURL;
for i := 0 to Parse.Count - 1 do
begin
if GetTagName(Parse[i]) = 'base' then
baseurl := GetVal(Parse[i], 'href');
if (GetTagName(Parse[i]) = 'img') and (GetVal(Parse[i], 'class') = 'picture') then
begin
if DownloadThread.workCounter < Container.PageLinks.Count then
Container.PageLinks[DownloadThread.workCounter] :=
MaybeFillHost(Module.RootURL, GetVal(Parse[i], 'src'));
MaybeFillHost(baseurl, GetVal(Parse[i], 'src'));
Break;
end;
end;
end;

begin
Expand Down

0 comments on commit 97aa82d

Please sign in to comment.