Metadata-Site Search (Interactive linking)

This commit is contained in:
2025-06-29 21:13:05 +02:00
parent ae0c6c8240
commit 7c9e0eddf9
4 changed files with 90 additions and 29 deletions

View File

@ -22,14 +22,13 @@ public abstract class MetadataFetcher
{
this.MetadataFetcherName = metadataFetcherName;
}
public abstract MetadataEntry? FindLinkedMetadataEntry(Manga manga);
public bool TryGetMetadataEntry(Manga manga, [NotNullWhen(true)] out MetadataEntry? metadataEntry)
{
metadataEntry = FindLinkedMetadataEntry(manga);
return metadataEntry != null;
}
internal MetadataEntry CreateMetadataEntry(Manga manga, string identifier) =>
new (this, manga, identifier);
public abstract MetadataSearchResult[] SearchMetadataEntry(Manga manga);
public abstract MetadataSearchResult[] SearchMetadataEntry(string searchTerm);
/// <summary>
/// Updates the Manga linked in the MetadataEntry