mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
Fix direct links on flix page
This commit is contained in:
parent
313f6af874
commit
9a74bb8030
1 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||||
}`;
|
}`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue