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

🐛 Fix media request not using external address
This commit is contained in:
Thomas Camlong authored and GitHub committed 2023-04-17 17:01:49 +09:00
commit 8c752a01a8
1 file changed
+1 -1
@@ -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}`,
};
})
);