Fix redundant keys, MangaSearch

This commit is contained in:
2024-12-16 19:25:22 +01:00
parent 87274aca19
commit 3b58e0498b
16 changed files with 126 additions and 98 deletions

View File

@ -111,9 +111,9 @@ public class AsuraToon : MangaConnector
Manga manga = new (publicationId, sortName, description, websiteUrl, coverUrl, null, year,
originalLanguage, releaseStatus, -1, null, null,
this.Name,
authors.Select(a => a.AuthorId).ToArray(),
mangaTags.Select(t => t.Tag).ToArray(),
this,
authors,
mangaTags,
[],
[]);

View File

@ -113,11 +113,11 @@ public class Bato : MangaConnector
Manga manga = new (publicationId, sortName, description, websiteUrl, coverUrl, null, year,
originalLanguage, releaseStatus, -1, null, null,
this.Name,
authors.Select(a => a.AuthorId).ToArray(),
mangaTags.Select(t => t.Tag).ToArray(),
this,
authors,
mangaTags,
[],
altTitles.Select(a => a.AltTitleId).ToArray());
altTitles);
return (manga, authors, mangaTags, [], altTitles);
}

View File

@ -176,11 +176,11 @@ public class MangaDex : MangaConnector
Manga pub = new (publicationId, sortName, description, $"https://mangadex.org/title/{publicationId}", coverUrl, null, year,
originalLanguage, releaseStatus, -1, null, null,
this.Name,
authors.Select(a => a.AuthorId).ToArray(),
mangaTags.Select(t => t.Tag).ToArray(),
links.Select(l => l.LinkId).ToArray(),
altTitles.Select(a => a.AltTitleId).ToArray());
this,
authors,
mangaTags,
links,
altTitles);
return (pub, authors, mangaTags, links, altTitles);
}

View File

@ -101,9 +101,9 @@ public class MangaHere : MangaConnector
Manga manga = new (publicationId, sortName, description, websiteUrl, coverUrl, null, 0,
originalLanguage, releaseStatus, -1, null, null,
this.Name,
authors.Select(a => a.AuthorId).ToArray(),
mangaTags.Select(t => t.Tag).ToArray(),
this,
authors,
mangaTags,
[],
[]);

View File

@ -141,11 +141,11 @@ public class MangaKatana : MangaConnector
Manga manga = new (publicationId, sortName, description, websiteUrl, coverUrl, null, year,
originalLanguage, releaseStatus, -1, null, null,
this.Name,
authors.Select(a => a.AuthorId).ToArray(),
mangaTags.Select(t => t.Tag).ToArray(),
this,
authors,
mangaTags,
[],
altTitles.Select(a => a.AltTitleId).ToArray());
altTitles);
return (manga, authors, mangaTags, [], altTitles);
}

View File

@ -120,9 +120,9 @@ public class MangaLife : MangaConnector
Manga manga = new (publicationId, sortName, description, websiteUrl, coverUrl, null, year,
originalLanguage, releaseStatus, -1, null, null,
this.Name,
authors.Select(a => a.AuthorId).ToArray(),
mangaTags.Select(t => t.Tag).ToArray(),
this,
authors,
mangaTags,
[],
[]);

View File

@ -136,11 +136,11 @@ public class Manganato : MangaConnector
Manga manga = new (publicationId, sortName, description, websiteUrl, coverUrl, null, year,
originalLanguage, releaseStatus, -1, null, null,
this.Name,
authors.Select(a => a.AuthorId).ToArray(),
mangaTags.Select(t => t.Tag).ToArray(),
this,
authors,
mangaTags,
[],
mangaAltTitles.Select(a => a.AltTitleId).ToArray());
mangaAltTitles);
return (manga, authors, mangaTags, [], mangaAltTitles);
}

View File

@ -150,9 +150,9 @@ public class Mangasee : MangaConnector
Manga manga = new (publicationId, sortName, description, websiteUrl, coverUrl, null, year,
originalLanguage, releaseStatus, -1, null, null,
this.Name,
authors.Select(a => a.AuthorId).ToArray(),
mangaTags.Select(t => t.Tag).ToArray(),
this,
authors,
mangaTags,
[],
[]);

View File

@ -118,11 +118,11 @@ public class Mangaworld : MangaConnector
Manga manga = new (publicationId, sortName, description, websiteUrl, coverUrl, null, year,
originalLanguage, releaseStatus, -1, null, null,
this.Name,
authors.Select(a => a.AuthorId).ToArray(),
mangaTags.Select(t => t.Tag).ToArray(),
this,
authors,
mangaTags,
[],
altTitles.Select(a => a.AltTitleId).ToArray());
altTitles);
return (manga, authors, mangaTags, [], altTitles);
}

View File

@ -123,9 +123,9 @@ public class ManhuaPlus : MangaConnector
Manga manga = new (publicationId, sortName, description, websiteUrl, coverUrl, null, year,
originalLanguage, releaseStatus, -1, null, null,
this.Name,
authors.Select(a => a.AuthorId).ToArray(),
mangaTags.Select(t => t.Tag).ToArray(),
this,
authors,
mangaTags,
[],
[]);

View File

@ -114,11 +114,11 @@ public class Weebcentral : MangaConnector
Manga manga = new (publicationId, sortName, description, websiteUrl, coverUrl, null, year,
originalLanguage, releaseStatus, -1, null, null,
this.Name,
authors.Select(a => a.AuthorId).ToArray(),
mangaTags.Select(t => t.Tag).ToArray(),
this,
authors,
mangaTags,
[],
altTitles.Select(a => a.AltTitleId).ToArray());
altTitles);
return (manga, authors, mangaTags, [], altTitles);
}