From c0f307e942fa858f6ef7a6a7a415a74df83f2d33 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 10 Sep 2023 02:02:40 -0700
Subject: refactor(anime): generalise episodes

---
 src/lib/List/Due/AnimeList.svelte | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

(limited to 'src/lib/List/Due/AnimeList.svelte')

diff --git a/src/lib/List/Due/AnimeList.svelte b/src/lib/List/Due/AnimeList.svelte
index 74c48fef..0be1ba1e 100644
--- a/src/lib/List/Due/AnimeList.svelte
+++ b/src/lib/List/Due/AnimeList.svelte
@@ -7,7 +7,7 @@
 	import anime from '../../../stores/anime';
 	import settings from '../../../stores/settings';
 	import lastPruneTimes from '../../../stores/lastPruneTimes';
-	import { airingTime } from '$lib/anime';
+	import { airingTime, totalEpisodes } from '$lib/anime';
 
 	export let user: AniListAuthorisation;
 	export let identity: UserIdentity;
@@ -105,10 +105,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(
-- 
cgit v1.2.3

