Skip to content

修复AI匹配中单集电影抢占SxxExx电视剧的问题及红果弹幕获取 - #454

Merged
huangxd- merged 4 commits into
mainfrom
dev_new
Aug 22, 2026
Merged

修复AI匹配中单集电影抢占SxxExx电视剧的问题及红果弹幕获取#454
huangxd- merged 4 commits into
mainfrom
dev_new

Conversation

@huangxd-

Copy link
Copy Markdown
Owner

No description provided.

- 在收藏列表接口中返回 `favoriteSupported` 字段,根据部署平台及 Redis 配置动态判断
- 前端根据 `favoriteSupported` 禁用“收藏”按钮,并显示配置 Redis 的提示信息
- 更新 README 说明 serverless 平台需配置 Upstash Redis 才能启用收藏功能
- 避免无持久化存储的实例在冷启动或实例切换后丢失收藏数据导致用户误操作
- 新增 isMovieMatchCandidate、getMatchEpisodeCount 和 isSingleEpisodeMatchCandidate 函数,用于准确识别电影及单集候选。
- 在 matchAniAndEpByAi 中,若 AI 选中单集候选而存在多集电视剧候选,则回退到常规季集匹配,避免同名电影错误命中 S01E01。
- 在常规匹配循环中,跳过单集候选参与有季集参数的匹配,并调整评分逻辑,对多集候选加分、单集候选减分,提升多集电视剧优先级。
- 优化 break 条件,避免单集候选提前终止搜索,确保多集候选能被充分比较。
- 新增parseWebSearchResults和parseWebSeriesDetail函数,从HTML响应中提取JSON数据
- search方法优先请求Web端/search页面,解析搜索结果列表
- getEpisodes方法优先请求Web端/detail页面,解析剧集列表
- 当Web请求失败时回退至原有API方式,提升数据获取的稳定性
@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
danmu_api Ready Ready Preview Aug 21, 2026 4:23pm

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
danmu-api 78f1be1 Commit Preview URL

Branch Preview URL
Aug 21 2026, 04:15 PM

@huangxd-
huangxd- merged commit 12d62ad into main Aug 22, 2026
4 checks passed
@huangxd-
huangxd- deleted the dev_new branch August 22, 2026 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant