Skip to content

Commit

Permalink
Fix auto webtoon mode detection
Browse files Browse the repository at this point in the history
E.g. in case the entry has a tag "Webtoons" this never triggered the auto webtoon mode due to "Webtoons" not being in string "webtoon".
  • Loading branch information
schroda committed Jan 23, 2025
1 parent b67c9c4 commit b60b799
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/manga/services/Mangas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,9 @@ export class Mangas {

static isType(manga: MangaGenreInfo & MangaSourceNameInfo, type: MangaType): boolean {
return (
manga.genre.some((genre) => MANGA_TAGS_BY_MANGA_TYPE[type].includes(genre.toLowerCase())) ||
SOURCES_BY_MANGA_TYPE[type].includes(manga.source?.name.toLowerCase() ?? '')
manga.genre.some((genre) =>
MANGA_TAGS_BY_MANGA_TYPE[type].some((tag) => genre.toLowerCase().includes(tag)),
) || SOURCES_BY_MANGA_TYPE[type].includes(manga.source?.name.toLowerCase() ?? '')
);
}

Expand Down

0 comments on commit b60b799

Please sign in to comment.