fix(jellyfin): 补上截断的编码器串类型(High Efficiency Video Coding)

This commit is contained in:
ali
2026-11-20 10:46:41 +08:00
parent 8ff1e81680
commit 0289ca9d66
4 changed files with 34 additions and 14 deletions
+8
View File
@@ -199,6 +199,10 @@ class JellyfinAdFixService:
it["Id"]: it.get("Studios") or []
for it in items if it.get("Type", "").endswith("Series")
}
series_genres = {
it["Id"]: it.get("Genres") or []
for it in items if it.get("Type", "").endswith("Series")
}
for item in targets:
hits = cls.polluted_fields(item)
@@ -223,6 +227,10 @@ class JellyfinAdFixService:
if not dto.get("Studios") and dto.get("SeriesId"):
dto["Studios"] = series_studios.get(dto["SeriesId"]) or []
# 类型同理:广告 genre 清掉后为空,继承剧集的真实类型
if not dto.get("Genres") and dto.get("SeriesId"):
dto["Genres"] = series_genres.get(dto["SeriesId"]) or []
need_refresh = bool(dto.get("Overview") and AD_PATTERN.search(dto["Overview"]))
if need_refresh:
dto["Overview"] = ""