1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +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) { function directLinkToContent(tmdbFullId: string) {
const currentDomain = window.location.href.split("#")[0]; const currentDomain = window.location.href.split("#")[0];
if (isShowOrMovie(tmdbFullId) === "show") { if (isShowOrMovie(tmdbFullId) === "show") {
return `${currentDomain}media/tmdb-movie-${tmdbFullId.split("-")[1]}`; return `${currentDomain}/media/tmdb-movie-${tmdbFullId.split("-")[1]}`;
} }
if (isShowOrMovie(tmdbFullId) === "movie") { if (isShowOrMovie(tmdbFullId) === "movie") {
return `${currentDomain}media/tmdb-tv-${tmdbFullId.split("-")[1]}`; return `${currentDomain}/media/tmdb-tv-${tmdbFullId.split("-")[1]}`;
} }
return null; return null;
} }