mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 14:33:26 +00:00
feat: link context menu and downloadmanager
This commit is contained in:
@@ -17,6 +17,7 @@ export default function VideoPlayerWrapper() {
|
||||
const data = params.data
|
||||
? (JSON.parse(params.data as string) as ItemData)
|
||||
: null;
|
||||
const download = params.download === "true";
|
||||
|
||||
if (!data) return router.back();
|
||||
|
||||
@@ -26,6 +27,10 @@ export default function VideoPlayerWrapper() {
|
||||
return <VideoPlayer />;
|
||||
}
|
||||
|
||||
if (download) {
|
||||
return <ScraperProcess data={data} download />;
|
||||
}
|
||||
|
||||
if (playerStatus === PlayerStatus.SCRAPING) {
|
||||
return <ScraperProcess data={data} />;
|
||||
}
|
||||
|
Reference in New Issue
Block a user