diff --git a/src/lib/SeasonsListEpisode.svelte b/src/lib/SeasonsListEpisode.svelte index 147f5db0..cdd483c3 100644 --- a/src/lib/SeasonsListEpisode.svelte +++ b/src/lib/SeasonsListEpisode.svelte @@ -24,6 +24,10 @@ let isHidden: boolean = $state(!!store?.userSettings?.hideSpoilers); + const isUnaired = $derived( + ep.air_date && new Date(ep.air_date).getTime() > new Date().getTime(), + ); + function updateWatchedEpisode(status?: WatchedStatus, rating?: number) { if (!watchedItem) { console.error( @@ -203,6 +207,11 @@ {Math.round(ep.vote_average * 10) / 10} + {#if isUnaired} + Airs on {new Date(ep.air_date).toLocaleDateString()} + {/if} {ep.overview} {#if watchedItem} @@ -309,6 +318,15 @@ } } } + + .episode-air-date { + font-size: 14px; + color: $text-color-accent; + padding: 0 2px; + text-transform: lowercase; + font-variant: small-caps; + font-weight: bold; + } } .status-rating-ctr {