1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-30 16:17:41 +01:00

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

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]
}`; }`;
} }