diff options
| author | Fuwn <[email protected]> | 2024-02-06 22:46:17 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-02-06 22:46:21 -0800 |
| commit | e2d6f6df0e522794f19f1cc442302802016651d2 (patch) | |
| tree | 2e5043b321a23d6babbbb320363ed56f18bba03a /src | |
| parent | feat(schedule): use global subsplease and modify (diff) | |
| download | due.moe-e2d6f6df0e522794f19f1cc442302802016651d2.tar.xz due.moe-e2d6f6df0e522794f19f1cc442302802016651d2.zip | |
fix(match): skip specials and ovas in schedule
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/Media/Anime/Airing/Subtitled/match.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/Media/Anime/Airing/Subtitled/match.ts b/src/lib/Media/Anime/Airing/Subtitled/match.ts index 648b0af7..60e9a68b 100644 --- a/src/lib/Media/Anime/Airing/Subtitled/match.ts +++ b/src/lib/Media/Anime/Airing/Subtitled/match.ts @@ -97,6 +97,13 @@ export const findClosestMedia = (media: Media[], matchFor: string) => { media.forEach((m) => { const titles = [m.title.romaji, m.title.english, ...m.synonyms].filter(Boolean); + if ( + titles.some( + (title) => title.toLowerCase().includes('special') || title.toLowerCase().includes('ova') + ) + ) + return; + titles.forEach((title) => { const normalisedTitle = normalizeTitle(title); const normalisedMatchFor = normalizeTitle(matchFor); |