From dedfb2a31725b8299515686a70b711fda04c134a Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 17 Dec 2023 06:53:58 -0800 Subject: fix(anime): position of subbed release --- src/lib/Media/Anime/airing.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/lib/Media/Anime') diff --git a/src/lib/Media/Anime/airing.ts b/src/lib/Media/Anime/airing.ts index c7d4a4ea..b6369fdc 100644 --- a/src/lib/Media/Anime/airing.ts +++ b/src/lib/Media/Anime/airing.ts @@ -61,17 +61,16 @@ const findClosestMatch = (times: Time[], titles: string[]) => { export const injectAiringTime = (anime: Media, subsPlease: SubsPlease | null) => { const airingAt = anime.nextAiringEpisode?.airingAt; - const nativeUntilAiring = airingAt - ? Math.round((airingAt - Date.now() / 1000) * 100) / 100 - : undefined; + // const nativeUntilAiring = airingAt + // ? Math.round((airingAt - Date.now() / 1000) * 100) / 100 + // : undefined; let untilAiring; let time = new Date(airingAt ? airingAt * 1000 : 0); if ( !( - get(settings).displayNativeCountdown || - !subsPlease || - !(nativeUntilAiring !== undefined && nativeUntilAiring < 24 * 60 * 60) + (get(settings).displayNativeCountdown || !subsPlease) + // || !(nativeUntilAiring !== undefined && nativeUntilAiring < 24 * 60 * 60) ) ) { const times: Time[] = []; -- cgit v1.2.3