fix(emby): 优先按 Provider ID 查询媒体 - #6314
Draft
bgColorGray wants to merge 1 commit into
Draft
Conversation
There was a problem hiding this comment.
PR-Agent Code Review
本次变更新增统一媒体身份到 Emby ProviderIds 的转换与校验,并让电影和电视剧优先按 Provider ID 查询,未命中时回退标题和年份,同时补充了离线回归测试。未发现可确认的行为缺陷,无需提出审查意见。
审查提交:c34488d
bgColorGray
marked this pull request as draft
August 14, 2026 11:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
Emby 媒体库存在性检查目前先按标题和年份搜索,再校验媒体身份。媒体元数据标题与 Emby 展示标题存在别名或本地化差异时,即使双方 TMDB ID 一致也会返回未入库,例如
航海王与海贼王(TMDB 37854)。修复
ProviderIds规范键值。AnyProviderIdEquals精确查询,并校验返回条目的 Provider ID。验证
pytest -q tests/test_emby_provider_id_lookup.py tests/test_mediaserver_tv_stale_itemid.py tests/test_emby_user_resolution.py tests/test_emby_dashboard_links.py: 19 passedpylint app/helper/mediaserver.py app/modules/emby/emby.py: 10.00/10python tests/run.py: 3985 passed, 3 skipped, 2 failed全量测试的两个失败均已在未修改的
upstream/v3@557cc0e2上独立复现:tests/test_bluray.py::BluRayTest::testtests/test_workflow_actions.py::test_workflow_manager_list_actions_exposes_contract它们不经过本次修改路径。
PR-Agent 摘要
🤖 Generated by PR Agent at c34488d