mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-02-22 18:44:44 +08:00
feat: del type param
This commit is contained in:
@@ -55,7 +55,6 @@ function PlayPageClient() {
|
||||
});
|
||||
|
||||
// 视频基本信息
|
||||
const [videoType, setVideoType] = useState(searchParams.get('type') || '');
|
||||
const [videoDoubanId, setVideoDoubanId] = useState(
|
||||
searchParams.get('douban_id') || ''
|
||||
);
|
||||
@@ -256,7 +255,6 @@ function PlayPageClient() {
|
||||
setCurrentSource(searchResults[0].source);
|
||||
setCurrentId(searchResults[0].id);
|
||||
setVideoYear(searchResults[0].year);
|
||||
setVideoType('');
|
||||
setVideoDoubanId(''); // 清空豆瓣ID
|
||||
// 替换URL参数
|
||||
const newUrl = new URL(window.location.href);
|
||||
@@ -422,10 +420,6 @@ function PlayPageClient() {
|
||||
: true) &&
|
||||
(videoDoubanId && result.douban_id
|
||||
? result.douban_id.toString() === videoDoubanId
|
||||
: true) &&
|
||||
(videoType
|
||||
? (videoType === 'movie' && result.episodes.length === 1) ||
|
||||
(videoType === 'tv' && result.episodes.length > 1)
|
||||
: true)
|
||||
);
|
||||
if (exactMatchs.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user