1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

Fix small issue with flix page

This commit is contained in:
Cooper Ransom 2024-03-15 22:17:42 -04:00
parent 6e1c82dabf
commit 4777886144

View file

@ -44,10 +44,10 @@ function isShowOrMovie(tmdbFullId: string): "show" | "movie" | "unknown" {
function directLinkToContent(tmdbFullId: string) {
const currentDomain = window.location.href.split("#")[0];
if (isShowOrMovie(tmdbFullId) === "show") {
return `${currentDomain}media/tmdb-movie-${tmdbFullId.split("-")[1]}`;
return `${currentDomain}/media/tmdb-movie-${tmdbFullId.split("-")[1]}`;
}
if (isShowOrMovie(tmdbFullId) === "movie") {
return `${currentDomain}media/tmdb-tv-${tmdbFullId.split("-")[1]}`;
return `${currentDomain}/media/tmdb-tv-${tmdbFullId.split("-")[1]}`;
}
return null;
}