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

---
 src/lib/List/WatchingAnimeList.svelte | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

(limited to 'src/lib/List/WatchingAnimeList.svelte')

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(
-- 
cgit v1.2.3

