115网盘在线播放

This commit is contained in:
mtvpls
2026-04-27 22:07:57 +08:00
parent 49861c24ec
commit f265566536
14 changed files with 756 additions and 11 deletions
+15 -2
View File
@@ -72,7 +72,7 @@ function HomeClient() {
const [toast, setToast] = useState<ToastProps | null>(null);
const detectNetdiskLink = (url: string): {
provider: 'quark' | 'mobile' | 'baidu' | 'tianyi' | '123' | 'uc';
provider: 'quark' | 'mobile' | 'baidu' | 'tianyi' | '123' | 'uc' | '115';
shareUrl: string;
passcode?: string;
} | null => {
@@ -146,6 +146,17 @@ function HomeClient() {
return { provider: 'mobile', shareUrl: trimmed };
}
if (/https:\/\/(?:115|anxia|115cdn)\.com\/s\//i.test(trimmed)) {
return {
provider: '115',
shareUrl: trimmed,
passcode: pickPasscode(
trimmed.match(/[?&](?:password|pwd|passcode)=([^&]+)/i)?.[1],
inlinePasscode(trimmed)
),
};
}
return null;
};
@@ -168,6 +179,8 @@ function HomeClient() {
? 'netdisk-baidu'
: netdisk.provider === 'tianyi'
? 'netdisk-tianyi'
: netdisk.provider === '115'
? 'netdisk-115'
: netdisk.provider === 'uc'
? 'netdisk-uc'
: netdisk.provider === '123'
@@ -860,7 +873,7 @@ function HomeClient() {
</div>
<div className='text-xs text-gray-500 dark:text-gray-400'>
UC123 线
UC123115 线
</div>
<input
value={directPlayUrl}