mirror of
https://github.com/C9Glax/tranga.git
synced 2025-04-16 13:23:17 +02:00
Possibly related to #20
This commit is contained in:
parent
b2e0c3db97
commit
0c8145803e
@ -102,6 +102,7 @@ public class Mangasee : MangaConnector
|
|||||||
return ParseSinglePublicationFromHtml(document);
|
return ParseSinglePublicationFromHtml(document);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
page.CloseAsync();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -262,6 +263,7 @@ public class Mangasee : MangaConnector
|
|||||||
{
|
{
|
||||||
HtmlDocument document = new ();
|
HtmlDocument document = new ();
|
||||||
document.LoadHtml(page.GetContentAsync().Result);
|
document.LoadHtml(page.GetContentAsync().Result);
|
||||||
|
page.CloseAsync();
|
||||||
|
|
||||||
HtmlNode gallery = document.DocumentNode.Descendants("div").First(div => div.HasClass("ImageGallery"));
|
HtmlNode gallery = document.DocumentNode.Descendants("div").First(div => div.HasClass("ImageGallery"));
|
||||||
HtmlNode[] images = gallery.Descendants("img").Where(img => img.HasClass("img-fluid")).ToArray();
|
HtmlNode[] images = gallery.Descendants("img").Where(img => img.HasClass("img-fluid")).ToArray();
|
||||||
@ -274,6 +276,8 @@ public class Mangasee : MangaConnector
|
|||||||
|
|
||||||
return DownloadChapterImages(urls.ToArray(), chapter.GetArchiveFilePath(settings.downloadLocation), 1, comicInfoPath, progressToken:progressToken);
|
return DownloadChapterImages(urls.ToArray(), chapter.GetArchiveFilePath(settings.downloadLocation), 1, comicInfoPath, progressToken:progressToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
page.CloseAsync();
|
||||||
return response.Status;
|
return response.Status;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user