Compare commits
2
Commits
v-fixed128
...
v-fixed130
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dfc1d87a54 | ||
|
|
4c4d065951 |
No files matched your search
@@ -2,6 +2,40 @@
|
||||
|
||||
本文档记录 KatelyaTV 项目的重要更新和功能变更。
|
||||
|
||||
## [fixed130] - 2026-11-14
|
||||
|
||||
### ✨ 优化(相关推荐)
|
||||
- **标题旁显示推荐规则**:「相关推荐」右侧新增说明「豆瓣相似影片推荐 · 取前10」——
|
||||
数据来自豆瓣官方推荐接口 `m.douban.com/rexxar/api/v2/{tv|movie}/{豆瓣ID}/recommendations`(取前 10 条),
|
||||
让用户知道这一栏是按什么规则出的数据(`src/components/VideoMetaExtra.tsx`)。
|
||||
|
||||
### 🔄 保持不变
|
||||
- 相关推荐卡片点击直达播放页(fixed129)、登录/注册鉴权、TVBox 配置(fixed128)、首页最新港剧(fixed127)。
|
||||
|
||||
### 镜像
|
||||
- katelyatv:fixed130(内网 + 腾讯云双推,latest 同步)
|
||||
|
||||
## [fixed129] - 2026-11-14
|
||||
|
||||
### 🐛 修复(详情页「相关推荐」点了跳到搜索页)
|
||||
- **相关推荐卡片改为直接进播放页**:`href` 由 `/search?q=<片名>` 改为 `/play?title=<片名>`,
|
||||
点击即打开对应影片详情并开始播放,不再跳转到搜索页(`src/components/VideoMetaExtra.tsx`)。
|
||||
- **播放页标题匹配加兜底**:精确匹配不到时(相关推荐/豆瓣标题与源站标题常有差异,如「无惧」vs「无惧神明」、
|
||||
「大医凌然 第二季」vs「大医凌然」)自动放宽到双向包含匹配,再找不到才走「未找到匹配结果」页
|
||||
(`src/app/play/page.tsx` 的 fetchSourcesData)。原先这类点击必然落到未找到页。
|
||||
|
||||
### 验证
|
||||
- 构建产物确认:相关推荐卡片 `href:"/play?title="`;播放页 bundle 含「严格→放宽→未找到」三级匹配逻辑。
|
||||
- 接口级复现(按播放页同款匹配逻辑跑 `/api/search`):「无惧」严格 0 → 放宽命中《无惧神明》;
|
||||
「大医凌然 第二季」严格 0 → 放宽命中《大医凌然》;「无名英雄」严格命中 9 条。
|
||||
「模范律师团」「去远方 第二季」源站确实无此片(返回的都是模糊无关结果),仍走未找到页(属数据缺失,非跳转 bug)。
|
||||
|
||||
### 🔄 保持不变
|
||||
- 登录/注册鉴权、首访 IPv6 线路门(`__v6dest`)、TVBox 配置(fixed128)、首页最新港剧(fixed127)。
|
||||
|
||||
### 镜像
|
||||
- katelyatv:fixed129(内网 + 腾讯云双推,latest 同步)
|
||||
|
||||
## [fixed128] - 2026-11-13
|
||||
|
||||
### 🐛 修复(TVBox 接口“用不了/没数据/功能和之前不一样”)
|
||||
|
||||
+2
-2
@@ -35,7 +35,7 @@ RUN find ./src -type f -name "route.ts" -print0 \
|
||||
ENV DOCKER_ENV=true
|
||||
# 海报走站内 /api/image-proxy(浏览器直连豆瓣图被拦导致全裂)
|
||||
ENV NEXT_PUBLIC_IMAGE_PROXY=/api/image-proxy
|
||||
ENV NEXT_PUBLIC_SITE_VERSION=fixed128
|
||||
ENV NEXT_PUBLIC_SITE_VERSION=fixed129
|
||||
ENV NEXT_PUBLIC_ENABLE_REGISTER=true
|
||||
|
||||
# For Docker builds, force dynamic rendering to read runtime environment variables.
|
||||
@@ -56,7 +56,7 @@ ENV HOSTNAME=0.0.0.0
|
||||
ENV PORT=3000
|
||||
ENV DOCKER_ENV=true
|
||||
ENV NEXT_PUBLIC_IMAGE_PROXY=/api/image-proxy
|
||||
ENV NEXT_PUBLIC_SITE_VERSION=fixed128
|
||||
ENV NEXT_PUBLIC_SITE_VERSION=fixed129
|
||||
ENV NEXT_PUBLIC_ENABLE_REGISTER=true
|
||||
|
||||
# 从构建器中复制 standalone 输出
|
||||
|
||||
@@ -228,6 +228,10 @@ docker compose -f docker-compose.redis.yml down
|
||||
|
||||
## 📋 更新日志
|
||||
|
||||
- **v-fixed130**:详情页「相关推荐」标题旁显示推荐规则说明「豆瓣相似影片推荐 · 取前10」(数据来自豆瓣官方推荐接口,取前 10 条相似影片)
|
||||
|
||||
- **v-fixed129**:详情页「相关推荐」点击改为直接打开影片详情并播放(`/play?title=`,原为跳搜索页 `/search?q=`);播放页标题匹配加兜底(精确匹配不到时放宽到双向包含,避免点进去报「未找到匹配结果」)
|
||||
|
||||
- **v-fixed128**:恢复 TVBox 旧版配置结构(「全部资源」站点 + 逐站代理 `/api/tvbox/<key>` + TOP7 分类视图,源码化时丢失);新增 `/api/tvbox/[site]` 逐站代理(9xx 分类→该源真实分类 id、逐子分类聚合、AI短剧搜索、筛选兜底);修复裸 `/api/tvbox` 的 9xx 分类全部 0 条、`wd` 搜索返回成配置 JSON、配置页 Base64 格式实际返回 JSON;配置响应改 no-store,88531 域名强制 https
|
||||
|
||||
- **v-fixed96**:新增动漫独立页 `/anime`(多源聚合+地区切换+更新排序+分页)与 `/api/browse` 第三方分类浏览接口;电影/剧集/综艺分类全量切第三方分类;修复动漫页首次进入空列表(`reset` 丢数据)
|
||||
|
||||
+34
-12
@@ -520,19 +520,41 @@ function PlayPageClient() {
|
||||
allResults = data.results;
|
||||
}
|
||||
|
||||
// 处理搜索结果,根据规则过滤
|
||||
const results = allResults.filter(
|
||||
(result: SearchResult) =>
|
||||
result.title.replaceAll(' ', '').toLowerCase() ===
|
||||
videoTitleRef.current.replaceAll(' ', '').toLowerCase() &&
|
||||
(videoYearRef.current
|
||||
? result.year.toLowerCase() === videoYearRef.current.toLowerCase()
|
||||
: true) &&
|
||||
(searchType
|
||||
? (searchType === 'tv' && result.episodes.length > 1) ||
|
||||
// 处理搜索结果,根据规则过滤(精确匹配优先)
|
||||
const strict = (result: SearchResult) =>
|
||||
result.title.replaceAll(' ', '').toLowerCase() ===
|
||||
videoTitleRef.current.replaceAll(' ', '').toLowerCase() &&
|
||||
(videoYearRef.current
|
||||
? result.year.toLowerCase() === videoYearRef.current.toLowerCase()
|
||||
: true) &&
|
||||
(searchType
|
||||
? (searchType === 'tv' && result.episodes.length > 1) ||
|
||||
(searchType === 'movie' && result.episodes.length === 1)
|
||||
: true);
|
||||
let results = allResults.filter(strict);
|
||||
// 精确匹配不到(相关推荐/豆瓣标题与源站标题常有差异)→ 放宽到双向包含;
|
||||
// 仍要求满足 searchType 语义;再找不到才走「未找到匹配结果」
|
||||
if (!results.length && videoTitleRef.current) {
|
||||
const norm = (x: string) =>
|
||||
x.replaceAll(' ', '')
|
||||
.replaceAll('·', '')
|
||||
.replaceAll(':', '')
|
||||
.replaceAll(':', '')
|
||||
.toLowerCase();
|
||||
const q = norm(videoTitleRef.current);
|
||||
results = allResults.filter((result: SearchResult) => {
|
||||
const tt = norm(result.title);
|
||||
if (!tt || !q) return false;
|
||||
if (!(tt.includes(q) || q.includes(tt))) return false;
|
||||
if (searchType) {
|
||||
return (
|
||||
(searchType === 'tv' && result.episodes.length > 1) ||
|
||||
(searchType === 'movie' && result.episodes.length === 1)
|
||||
: true)
|
||||
);
|
||||
);
|
||||
}
|
||||
return true;
|
||||
});
|
||||
}
|
||||
setAvailableSources(results);
|
||||
return results;
|
||||
} catch (err) {
|
||||
|
||||
@@ -210,12 +210,15 @@ export default function VideoMetaExtra({
|
||||
</div>
|
||||
{related.length > 0 && (
|
||||
<div className='mt-4'>
|
||||
<div className='text-sm font-semibold mb-2 opacity-80'>相关推荐</div>
|
||||
<div className='flex items-baseline gap-2 text-sm font-semibold mb-2 opacity-80'>
|
||||
<span>相关推荐</span>
|
||||
<span className='text-xs font-normal opacity-60'>豆瓣相似影片推荐 · 取前10</span>
|
||||
</div>
|
||||
<div className='grid grid-cols-5 gap-3'>
|
||||
{related.map((r: any) => (
|
||||
<a
|
||||
key={r.id}
|
||||
href={`/search?q=${encodeURIComponent(r.title)}`}
|
||||
href={`/play?title=${encodeURIComponent(r.title)}`}
|
||||
target='_self'
|
||||
rel='noreferrer'
|
||||
className='group block'
|
||||
|
||||
Reference in new issue
Block a user