chore(tv): removed the wrong parameter.

The PR should not fix the issue reported in recent tvdb PR.

Signed-off-by: 0xsysr3ll <0xsysr3ll@pm.me>
This commit is contained in:
0xsysr3ll
2025-09-03 23:19:59 +02:00
parent 037ba75bd4
commit f3f8383c9d

View File

@@ -28,6 +28,7 @@ tvRoutes.get('/:id', async (req, res, next) => {
: await getMetadataProvider('tv');
const tv = await metadataProvider.getTvShow({
tvId: Number(req.params.id),
language: (req.query.language as string) ?? req.locale,
});
const media = await Media.getMedia(tv.id, MediaType.TV);
@@ -80,7 +81,6 @@ tvRoutes.get('/:id/season/:seasonNumber', async (req, res, next) => {
const season = await metadataProvider.getTvSeason({
tvId: Number(req.params.id),
seasonNumber: Number(req.params.seasonNumber),
language: (req.query.language as string) ?? req.locale,
});
const media = await Media.getMedia(Number(req.params.id), MediaType.TV);