add season title and episode count

This commit is contained in:
Aykhan 2025-09-18 14:48:07 +04:00
parent 9f22349271
commit bebb680927
2 changed files with 4 additions and 0 deletions

View file

@ -95,6 +95,8 @@ export async function getShowMediaDetails(id: string, seasonNumber: string, epis
season: {
number: season.season_number,
tmdbId: season.id,
title: season.name,
episodeCount: season.episodes.length,
},
imdbId: series.external_ids.imdb_id,
};

View file

@ -16,6 +16,8 @@ export type ShowMedia = CommonMedia & {
season: {
number: number;
tmdbId: string;
title: string;
episodeCount?: number;
};
};