Files
Auto_Bangumi/docs/en/dev/plugins/points/title-parsed.md
Estrella Pan 3258fcca4b docs(4.0-P7): 插件开发文档拆分为总览加每个扩展点一页,补齐中英日三语
- docs/dev/plugins.md 改为总览与导航,旧内容拆入 docs/dev/plugins/
- 新增核心概念、配置表单、事件、前端挂载点、命令行、签名与分发、内置插件、示例页
- 每个扩展点一页,侧边栏由页面表生成
- 改正旧文档中下载器配置、hardlink path_map 与补链按钮的过时描述
2026-10-08 14:51:00 +02:00

24 lines
1.2 KiB
Markdown

# Parsed Title (title.parsed)
A transform hook. AB calls it after the deterministic parse (and after the LLM parse, if enabled) and before the admission check. The hook receives the frozen parse result. Return a changed copy made with `dataclasses.replace`. `None` means no change. AB ignores a return value of another type, and it counts toward the breaker.
```python
from dataclasses import replace
from ab_sdk import Plugin, hook, points
ALIASES = {"LoliHouse": "Lolihouse"}
class GroupAlias(Plugin):
@hook(points.TITLE_PARSED)
def fix(self, release):
if release.group in ALIASES:
return replace(release, group=ALIASES[release.group])
return None
```
- Readable fields: `raw`, `title_en`, `title_zh`, `title_jp`, `group`, `season`, `episode`, `resolution`, `source`, `subtitle`, `year`. You can read other attributes (`media_type`, `release_kind` and more), but they are not stable before SDK 1.0.
- The series name, the season and the release group of a new rule come from this result. A change here therefore affects the rules that AB creates.
- If you change the type to PV, batch release or similar, AB does not accept the resource.