2
0

public GetPublications

This commit is contained in:
glax 2023-08-26 01:46:36 +02:00
parent 2d82279d98
commit e6a3fa2899
5 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ public abstract class MangaConnector : GlobalBase
/// </summary>
/// <param name="publicationTitle">Search-Query</param>
/// <returns>Publications matching the query</returns>
protected abstract Publication[] GetPublications(string publicationTitle = "");
public abstract Publication[] GetPublications(string publicationTitle = "");
/// <summary>
/// Returns all Chapters of the publication in the provided language.

View File

@ -31,7 +31,7 @@ public class MangaDex : MangaConnector
}, clone);
}
protected override Publication[] GetPublications(string publicationTitle = "")
public override Publication[] GetPublications(string publicationTitle = "")
{
Log($"Searching Publications. Term=\"{publicationTitle}\"");
const int limit = 100; //How many values we want returned at once

View File

@ -19,7 +19,7 @@ public class MangaKatana : MangaConnector
}, clone);
}
protected override Publication[] GetPublications(string publicationTitle = "")
public override Publication[] GetPublications(string publicationTitle = "")
{
Log($"Searching Publications. Term=\"{publicationTitle}\"");
string sanitizedTitle = string.Join('_', Regex.Matches(publicationTitle, "[A-z]*").Where(m => m.Value.Length > 0)).ToLower();

View File

@ -19,7 +19,7 @@ public class Manganato : MangaConnector
}, clone);
}
protected override Publication[] GetPublications(string publicationTitle = "")
public override Publication[] GetPublications(string publicationTitle = "")
{
Log($"Searching Publications. Term=\"{publicationTitle}\"");
string sanitizedTitle = string.Join('_', Regex.Matches(publicationTitle, "[A-z]*")).ToLower();

View File

@ -69,7 +69,7 @@ public class Mangasee : MangaConnector
});
}
protected override Publication[] GetPublications(string publicationTitle = "")
public override Publication[] GetPublications(string publicationTitle = "")
{
Log($"Searching Publications. Term=\"{publicationTitle}\"");
string requestUrl = $"https://mangasee123.com/_search.php";