mirror of
https://github.com/sct/overseerr.git
synced 2025-12-25 00:04:56 +01:00
feat: add tagline, episode runtime, genres list to media details & clean/refactor CSS into globals (#1160)
This commit is contained in:
@@ -254,6 +254,7 @@ export interface TmdbTvDetails {
|
||||
}[];
|
||||
seasons: TmdbTvSeasonResult[];
|
||||
status: string;
|
||||
tagline?: string;
|
||||
type: string;
|
||||
vote_average: number;
|
||||
vote_count: number;
|
||||
|
||||
@@ -91,6 +91,7 @@ export interface TvDetails {
|
||||
spokenLanguages: SpokenLanguage[];
|
||||
seasons: Season[];
|
||||
status: string;
|
||||
tagline?: string;
|
||||
type: string;
|
||||
voteAverage: number;
|
||||
voteCount: number;
|
||||
@@ -174,6 +175,7 @@ export const mapTvDetails = (
|
||||
originCountry: show.origin_country,
|
||||
originalLanguage: show.original_language,
|
||||
originalName: show.original_name,
|
||||
tagline: show.tagline,
|
||||
overview: show.overview,
|
||||
popularity: show.popularity,
|
||||
productionCompanies: show.production_companies.map((company) => ({
|
||||
|
||||
@@ -95,7 +95,9 @@ router.get<{ id: string }>('/network/:id', async (req, res) => {
|
||||
router.get('/genres/movie', isAuthenticated(), async (req, res) => {
|
||||
const tmdb = new TheMovieDb();
|
||||
|
||||
const genres = await tmdb.getMovieGenres();
|
||||
const genres = await tmdb.getMovieGenres({
|
||||
language: req.query.language as string,
|
||||
});
|
||||
|
||||
return res.status(200).json(genres);
|
||||
});
|
||||
@@ -103,7 +105,9 @@ router.get('/genres/movie', isAuthenticated(), async (req, res) => {
|
||||
router.get('/genres/tv', isAuthenticated(), async (req, res) => {
|
||||
const tmdb = new TheMovieDb();
|
||||
|
||||
const genres = await tmdb.getTvGenres();
|
||||
const genres = await tmdb.getTvGenres({
|
||||
language: req.query.language as string,
|
||||
});
|
||||
|
||||
return res.status(200).json(genres);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user