feat: link context menu and downloadmanager

This commit is contained in:
Adrian Castro
2024-03-21 15:26:31 +01:00
parent 9c724ec550
commit ea4b702c5c
3 changed files with 32 additions and 9 deletions

View File

@@ -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} />;
}