Merge pull request #826 from ajnart/media-widget-external-url

🐛 Fix media request not using external address
This commit is contained in:
Thomas Camlong
2023-04-17 17:01:49 +09:00
committed by GitHub

View File

@@ -47,7 +47,7 @@ const Get = async (request: NextApiRequest, response: NextApiResponse) => {
status: item.status,
backdropPath: `https://image.tmdb.org/t/p/original/${genericItem.backdropPath}`,
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}`,
};
})
);