mirror of
https://github.com/movie-web/movie-web.git
synced 2025-01-12 11:59:06 +01:00
Fixes
This commit is contained in:
parent
7de093ef20
commit
25452fa01a
@ -73,7 +73,6 @@ export function BannerLocation(props: { location?: string }) {
|
||||
const [appLink, setAppLink] = useState("");
|
||||
|
||||
useEffect(() => {
|
||||
console.log(meta);
|
||||
if (meta) {
|
||||
setAppLink(getMobileAppLink(meta));
|
||||
} else {
|
||||
@ -104,7 +103,7 @@ export function BannerLocation(props: { location?: string }) {
|
||||
<LinkedBanner
|
||||
id="open_app"
|
||||
type="open_app"
|
||||
href={meta ? appLink : "movieweb://home"}
|
||||
href={meta ? appLink : "movieweb://"}
|
||||
>
|
||||
{t("navigation.banner.mobile")}
|
||||
</LinkedBanner>
|
||||
|
@ -3,7 +3,7 @@ import { PlayerMeta } from "@/stores/player/slices/source";
|
||||
export function getMobileAppLink(meta: PlayerMeta) {
|
||||
const url = new URL("movieweb://videoPlayer");
|
||||
|
||||
url.searchParams.set("type", meta.type);
|
||||
url.searchParams.set("type", meta.type === "movie" ? "movie" : "tv");
|
||||
url.searchParams.set("id", meta.tmdbId);
|
||||
|
||||
const isShow = meta.type === "show";
|
||||
|
Loading…
x
Reference in New Issue
Block a user