From 276de6688cd09df22365161514ebc04cb4f6fe56 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Mon, 6 Nov 2023 09:23:48 -0800
Subject: feat(wrapped): add total episode count for completed

---
 src/lib/Tools/Wrapped.svelte | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/lib/Tools/Wrapped.svelte')

diff --git a/src/lib/Tools/Wrapped.svelte b/src/lib/Tools/Wrapped.svelte
index 289b03df..59dd0b97 100644
--- a/src/lib/Tools/Wrapped.svelte
+++ b/src/lib/Tools/Wrapped.svelte
@@ -85,8 +85,8 @@
 			});
 
 			for (const media of animeList) {
-				if (media.startDate.year === currentYear) {
-					episodes += media.mediaListEntry?.progress || 0;
+				if (media.mediaListEntry?.status === 'COMPLETED') {
+					episodes += media.episodes;
 				}
 			}
 		} else {
-- 
cgit v1.2.3

