diff --git a/package.json b/package.json index 853b688..43b90d3 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "@upstash/redis": "^1.25.0", "@vidstack/react": "^1.12.13", "anime4k-webgpu": "^1.0.0", - "artplayer": "^5.2.5", + "artplayer": "^5.3.0", "artplayer-plugin-danmuku": "^5.2.0", "bs58": "^6.0.0", "cheerio": "^1.1.2", diff --git a/src/app/admin/page.tsx b/src/app/admin/page.tsx index 0060520..3a473a4 100644 --- a/src/app/admin/page.tsx +++ b/src/app/admin/page.tsx @@ -2959,7 +2959,7 @@ const OpenListConfigComponent = ({ }); }; - const handleDeleteVideo = async (folder: string, title: string) => { + const handleDeleteVideo = async (key: string, title: string) => { // 显示确认对话框,直接在 onConfirm 中执行删除操作 showAlert({ type: 'warning', @@ -2971,7 +2971,7 @@ const OpenListConfigComponent = ({ const response = await fetch('/api/openlist/delete', { method: 'POST', headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ folder }), + body: JSON.stringify({ key }), }); if (!response.ok) { @@ -3295,7 +3295,7 @@ const OpenListConfigComponent = ({ {video.failed ? '立即纠错' : '纠错'}