aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-09-10 02:04:33 -0700
committerFuwn <[email protected]>2023-09-10 02:04:33 -0700
commit33203994b644320262c258b35aa36f4c31a148d2 (patch)
tree289e6514b09190882d9e4603226f07673eecd059 /src
parentrefactor(anime): generalise episodes (diff)
downloaddue.moe-33203994b644320262c258b35aa36f4c31a148d2.tar.xz
due.moe-33203994b644320262c258b35aa36f4c31a148d2.zip
refactor(anime): generalise episodes
Diffstat (limited to 'src')
-rw-r--r--src/lib/List/WatchingAnimeList.svelte5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/List/WatchingAnimeList.svelte b/src/lib/List/WatchingAnimeList.svelte
index f398d78f..f22d80df 100644
--- a/src/lib/List/WatchingAnimeList.svelte
+++ b/src/lib/List/WatchingAnimeList.svelte
@@ -7,6 +7,7 @@
import anime from '../../stores/anime';
import lastPruneTimes from '../../stores/lastPruneTimes';
import settings from '../../stores/settings';
+ import { totalEpisodes } from '$lib/anime';
export let user: AniListAuthorisation;
export let identity: UserIdentity;
@@ -59,10 +60,6 @@
return finalMedia;
};
- const totalEpisodes = (anime: Media) => {
- return anime.episodes === null ? '' : `<span style="opacity: 50%">/${anime.episodes}</span>`;
- };
-
const updateMedia = async (id: number, progress: number | undefined) => {
fetch(`/anilist/increment?id=${id}&progress=${(progress || 0) + 1}`).then(() => {
animeLists = mediaListCollection(