Added MangaDex Api. Updated project structure.
This commit is contained in:
18
MangaReader.Core/Metadata/MangaWebCrawler.cs
Normal file
18
MangaReader.Core/Metadata/MangaWebCrawler.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using HtmlAgilityPack;
|
||||
|
||||
namespace MangaReader.Core.Metadata;
|
||||
|
||||
public abstract class MangaWebCrawler : IMangaMetadataProvider
|
||||
{
|
||||
public abstract SourceManga GetManga(string url);
|
||||
|
||||
protected virtual HtmlDocument GetHtmlDocument(string url)
|
||||
{
|
||||
HtmlWeb web = new()
|
||||
{
|
||||
UsingCacheIfExists = false
|
||||
};
|
||||
|
||||
return web.Load(url);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user