aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-12-17 09:07:06 -0800
committerFuwn <[email protected]>2023-12-17 09:07:06 -0800
commit38f9385157bfcb96d8fb2b9bd03a47b84d8c06fd (patch)
treebb16bf698650582878ef96e6bb81976e9cb389e9 /src/lib
parentfix(airing): native vs subtitled minimum difference (diff)
downloaddue.moe-38f9385157bfcb96d8fb2b9bd03a47b84d8c06fd.tar.xz
due.moe-38f9385157bfcb96d8fb2b9bd03a47b84d8c06fd.zip
refactor(airing): rename function
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Media/Anime/airing.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Media/Anime/airing.ts b/src/lib/Media/Anime/airing.ts
index 66edc140..15abbf2a 100644
--- a/src/lib/Media/Anime/airing.ts
+++ b/src/lib/Media/Anime/airing.ts
@@ -12,7 +12,7 @@ interface Time {
day: string;
}
-export const airedButNotSubtitled = (anime: Media) =>
+export const airedUnsubtitled = (anime: Media) =>
anime.nextAiringEpisode?.airingAt &&
anime.nextAiringEpisode?.nativeAiringAt &&
new Date(anime.nextAiringEpisode.airingAt * 1000).getTime() > Date.now() &&
@@ -110,7 +110,7 @@ export const injectAiringTime = (anime: Media, subsPlease: SubsPlease | null) =>
if (
// This was an insane debugging session .... What, like eight hours? ...
- airedButNotSubtitled({
+ airedUnsubtitled({
nextAiringEpisode: {
...anime.nextAiringEpisode,
airingAt: time.getTime() / 1000,