aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-02-06 22:46:17 -0800
committerFuwn <[email protected]>2024-02-06 22:46:21 -0800
commite2d6f6df0e522794f19f1cc442302802016651d2 (patch)
tree2e5043b321a23d6babbbb320363ed56f18bba03a /src
parentfeat(schedule): use global subsplease and modify (diff)
downloaddue.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.ts7
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);