diff options
| author | Fuwn <[email protected]> | 2024-05-12 16:41:37 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-05-12 16:41:37 -0700 |
| commit | ea3d60734069783870f0524c4a0ada61d24d3c88 (patch) | |
| tree | 92d00b5a3f4f85a4ad24757043bbd50dc53429bc /src/lib/Media/Anime/Airing/Subtitled | |
| parent | feat(outboundLink): trailing slash for anilist (diff) | |
| download | due.moe-ea3d60734069783870f0524c4a0ada61d24d3c88.tar.xz due.moe-ea3d60734069783870f0524c4a0ada61d24d3c88.zip | |
fix(match): delayed anime
Diffstat (limited to 'src/lib/Media/Anime/Airing/Subtitled')
| -rw-r--r-- | src/lib/Media/Anime/Airing/Subtitled/match.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Media/Anime/Airing/Subtitled/match.ts b/src/lib/Media/Anime/Airing/Subtitled/match.ts index cb73a1e3..d8534090 100644 --- a/src/lib/Media/Anime/Airing/Subtitled/match.ts +++ b/src/lib/Media/Anime/Airing/Subtitled/match.ts @@ -183,7 +183,8 @@ export const injectAiringTime = (anime: Media, subsPlease: SubsPlease | null) => if ( airingAt && nativeTime.getTime() !== time.getTime() && - nativeTime.getTime() - time.getTime() > 24 * 60 * 60 * 1000 + nativeTime.getTime() - time.getTime() > 24 * 60 * 60 * 1000 && + nativeTime.getTime() - Date.now() < 7 * 24 * 60 * 60 * 1000 ) nextEpisode -= 1; |