🐛 Fix media request not using external address

This commit is contained in:
ajnart
2023-04-17 15:14:26 +09:00
parent ec76c10fdc
commit a18c8df664

View File

@@ -47,7 +47,7 @@ const Get = async (request: NextApiRequest, response: NextApiResponse) => {
status: item.status, status: item.status,
backdropPath: `https://image.tmdb.org/t/p/original/${genericItem.backdropPath}`, backdropPath: `https://image.tmdb.org/t/p/original/${genericItem.backdropPath}`,
posterPath: `https://image.tmdb.org/t/p/w600_and_h900_bestv2/${genericItem.posterPath}`, posterPath: `https://image.tmdb.org/t/p/w600_and_h900_bestv2/${genericItem.posterPath}`,
href: `${app.url}/movie/${item.media.tmdbId}`, href: `${app.behaviour.externalUrl}/movie/${item.media.tmdbId}`,
}; };
}) })
); );