Fix direct links on flix page

This commit is contained in:
Cooper Ransom 2024-03-17 18:02:36 -04:00
parent 313f6af874
commit 9a74bb8030
1 changed files with 2 additions and 2 deletions

View File

@ -43,12 +43,12 @@ function isShowOrMovie(tmdbFullId: string): "series" | "movie" | "unknown" {
function directLinkToContent(tmdbFullId: string) { function directLinkToContent(tmdbFullId: string) {
if (isShowOrMovie(tmdbFullId) === "series") { if (isShowOrMovie(tmdbFullId) === "series") {
return `${window.location.pathname}#/media/tmdb-movie-${ return `/media/tmdb-tv-${tmdbFullId.split("-")[1]}#/media/tmdb-tv-${
tmdbFullId.split("-")[1] tmdbFullId.split("-")[1]
}`; }`;
} }
if (isShowOrMovie(tmdbFullId) === "movie") { if (isShowOrMovie(tmdbFullId) === "movie") {
return `${window.location.pathname}#/media/tmdb-tv-${ return `/media/tmdb-movie-${tmdbFullId.split("-")[1]}#/media/tmdb-movie-${
tmdbFullId.split("-")[1] tmdbFullId.split("-")[1]
}`; }`;
} }