diff --git a/back/src/Kyoo.Core/Controllers/Repositories/WatchStatusRepository.cs b/back/src/Kyoo.Core/Controllers/Repositories/WatchStatusRepository.cs index b5e89be3..1eaf5991 100644 --- a/back/src/Kyoo.Core/Controllers/Repositories/WatchStatusRepository.cs +++ b/back/src/Kyoo.Core/Controllers/Repositories/WatchStatusRepository.cs @@ -103,7 +103,7 @@ public class WatchStatusRepository : IWatchStatusRepository /* includesJoin */ where (coalesce(s.watch_status, m.watch_status) = 'watching'::watch_status - or coalesce(s.watch_status, m.watch_status) = 'completed'::watch_status) + or coalesce(s.watch_status, m.watch_status) = 'planned'::watch_status) /* where */ order by coalesce(s.order, m.order) desc, diff --git a/front/packages/ui/src/home/watchlist.tsx b/front/packages/ui/src/home/watchlist.tsx index 544cca3a..f2462674 100644 --- a/front/packages/ui/src/home/watchlist.tsx +++ b/front/packages/ui/src/home/watchlist.tsx @@ -60,7 +60,6 @@ export const WatchlistList = () => { thumbnail={episode?.thumbnail ?? x.thumbnail} href={episode?.href} watchedPercent={x.watchStatus?.watchedPercent || null} - watchedStatus={x.watchStatus?.status || null} // TODO: support this on mobile too // @ts-expect-error This is a web only property {...css({ gridColumnEnd: "span 2" })} @@ -74,6 +73,9 @@ export const WatchlistList = () => { poster={x.poster} watchStatus={x.watchStatus?.status || null} watchPercent={x.watchStatus?.watchedPercent || null} + unseenEpisodesCount={ + x.kind === WatchlistKind.Show ? x.watchStatus?.unseenEpisodesCount : null + } type={x.kind === WatchlistKind.Movie ? "movie" : "show"} /> );