mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-05-22 22:57:35 +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(
|
const [videoDoubanId, setVideoDoubanId] = useState(
|
||||||
searchParams.get('douban_id') || ''
|
searchParams.get('douban_id') || ''
|
||||||
);
|
);
|
||||||
@@ -256,7 +255,6 @@ function PlayPageClient() {
|
|||||||
setCurrentSource(searchResults[0].source);
|
setCurrentSource(searchResults[0].source);
|
||||||
setCurrentId(searchResults[0].id);
|
setCurrentId(searchResults[0].id);
|
||||||
setVideoYear(searchResults[0].year);
|
setVideoYear(searchResults[0].year);
|
||||||
setVideoType('');
|
|
||||||
setVideoDoubanId(''); // 清空豆瓣ID
|
setVideoDoubanId(''); // 清空豆瓣ID
|
||||||
// 替换URL参数
|
// 替换URL参数
|
||||||
const newUrl = new URL(window.location.href);
|
const newUrl = new URL(window.location.href);
|
||||||
@@ -422,10 +420,6 @@ function PlayPageClient() {
|
|||||||
: true) &&
|
: true) &&
|
||||||
(videoDoubanId && result.douban_id
|
(videoDoubanId && result.douban_id
|
||||||
? result.douban_id.toString() === videoDoubanId
|
? result.douban_id.toString() === videoDoubanId
|
||||||
: true) &&
|
|
||||||
(videoType
|
|
||||||
? (videoType === 'movie' && result.episodes.length === 1) ||
|
|
||||||
(videoType === 'tv' && result.episodes.length > 1)
|
|
||||||
: true)
|
: true)
|
||||||
);
|
);
|
||||||
if (exactMatchs.length > 0) {
|
if (exactMatchs.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user