diff options
| author | Fuwn <[email protected]> | 2023-12-17 09:04:42 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-12-17 09:04:42 -0800 |
| commit | 40f378cba36c678560508f6eb27478e54623c7ba (patch) | |
| tree | e55b3e20c483ff074a51899dde60e7b665da14bc /src/lib | |
| parent | fix(airing): both current and new sub episode (diff) | |
| download | due.moe-40f378cba36c678560508f6eb27478e54623c7ba.tar.xz due.moe-40f378cba36c678560508f6eb27478e54623c7ba.zip | |
fix(airing): native vs subtitled minimum difference
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/Media/Anime/airing.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Media/Anime/airing.ts b/src/lib/Media/Anime/airing.ts index 6d29d122..66edc140 100644 --- a/src/lib/Media/Anime/airing.ts +++ b/src/lib/Media/Anime/airing.ts @@ -17,7 +17,7 @@ export const airedButNotSubtitled = (anime: Media) => anime.nextAiringEpisode?.nativeAiringAt && new Date(anime.nextAiringEpisode.airingAt * 1000).getTime() > Date.now() && new Date(anime.nextAiringEpisode.nativeAiringAt * 1000).getTime() - Date.now() > - 4 * 24 * 60 * 60 * 1000; + 7 * 24 * 60 * 60 * 1000; const secondsUntil = (targetTime: string, targetDay: string) => { const now = new Date(); |