Skip to content

Commit 2f2e002

Browse files
authored
feat: add tagline, episode runtime, genres list to media details & clean/refactor CSS into globals (#1160)
1 parent 3d6b343 commit 2f2e002

File tree

23 files changed

+682
-583
lines changed

23 files changed

+682
-583
lines changed

overseerr-api.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,8 @@ components:
904904
$ref: '#/components/schemas/Season'
905905
status:
906906
type: string
907+
tagline:
908+
type: string
907909
type:
908910
type: string
909911
voteAverage:
@@ -4737,6 +4739,12 @@ paths:
47374739
description: Returns a list of genres in a JSON array.
47384740
tags:
47394741
- tmdb
4742+
parameters:
4743+
- in: query
4744+
name: language
4745+
schema:
4746+
type: string
4747+
example: en
47404748
responses:
47414749
'200':
47424750
description: Results
@@ -4759,6 +4767,12 @@ paths:
47594767
description: Returns a list of genres in a JSON array.
47604768
tags:
47614769
- tmdb
4770+
parameters:
4771+
- in: query
4772+
name: language
4773+
schema:
4774+
type: string
4775+
example: en
47624776
responses:
47634777
'200':
47644778
description: Results

server/api/themoviedb/interfaces.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ export interface TmdbTvDetails {
254254
}[];
255255
seasons: TmdbTvSeasonResult[];
256256
status: string;
257+
tagline?: string;
257258
type: string;
258259
vote_average: number;
259260
vote_count: number;

server/models/Tv.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export interface TvDetails {
9191
spokenLanguages: SpokenLanguage[];
9292
seasons: Season[];
9393
status: string;
94+
tagline?: string;
9495
type: string;
9596
voteAverage: number;
9697
voteCount: number;
@@ -174,6 +175,7 @@ export const mapTvDetails = (
174175
originCountry: show.origin_country,
175176
originalLanguage: show.original_language,
176177
originalName: show.original_name,
178+
tagline: show.tagline,
177179
overview: show.overview,
178180
popularity: show.popularity,
179181
productionCompanies: show.production_companies.map((company) => ({

server/routes/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,19 @@ router.get<{ id: string }>('/network/:id', async (req, res) => {
9595
router.get('/genres/movie', isAuthenticated(), async (req, res) => {
9696
const tmdb = new TheMovieDb();
9797

98-
const genres = await tmdb.getMovieGenres();
98+
const genres = await tmdb.getMovieGenres({
99+
language: req.query.language as string,
100+
});
99101

100102
return res.status(200).json(genres);
101103
});
102104

103105
router.get('/genres/tv', isAuthenticated(), async (req, res) => {
104106
const tmdb = new TheMovieDb();
105107

106-
const genres = await tmdb.getTvGenres();
108+
const genres = await tmdb.getTvGenres({
109+
language: req.query.language as string,
110+
});
107111

108112
return res.status(200).json(genres);
109113
});

0 commit comments

Comments
 (0)