fix(jellyfin): 补上截断的编码器串类型(High Efficiency Video Coding)
This commit is contained in:
@@ -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"] = ""
|
||||
|
||||
Reference in New Issue
Block a user