From 49fd6daa061764e79ea8928b5d53214c11dba73c Mon Sep 17 00:00:00 2001 From: mtvpls <247332661+mtvpls@users.noreply.github.com> Date: Thu, 30 Jul 2026 23:12:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BAnetdisk=E6=BA=90=E5=A2=9E=E5=8A=A0CORS?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/play/page.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/play/page.tsx b/src/app/play/page.tsx index ab2709c..50512b2 100644 --- a/src/app/play/page.tsx +++ b/src/app/play/page.tsx @@ -741,14 +741,15 @@ function PlayPageClient() { ); }; - /** 私人影库类源:配合 moontvplus-extension 跨域媒体模块,供 Anime4K 等读帧 */ + /** 私人影库/网盘类源:配合 moontvplus-extension 跨域媒体模块,供 Anime4K 等读帧 */ const needsPrivateSourceCrossOrigin = (source?: string | null) => { if (!source) return false; return ( source === 'openlist' || source === 'xiaoya' || source === 'emby' || - source.startsWith('emby_') + source.startsWith('emby_') || + isNetdiskSource(source) ); }; @@ -3812,7 +3813,7 @@ function PlayPageClient() { (video as any).playsInline = true; (video as any).webkitPlaysInline = true; - // openlist/emby/xiaoya:CORS 模式加载,需配套「moontvplus 扩展」注入 ACAO 后 Anime4K 才能读帧 + // openlist/emby/xiaoya/netdisk:CORS 模式加载,需配套「moontvplus 扩展」注入 ACAO 后 Anime4K 才能读帧 applyVideoCrossOrigin(video, currentSourceRef.current); };