公开 API
发布其他类资源
POST /api/other-releases/publish —— 发布七类其他资源;不绑定 bgmId。
漫画、音乐、RAW、舞台剧、合集、剧场版、其他。要求 releases:publish。不混入番剧列表。
POST /api/other-releases/publish
鉴权 · releases:publish
category 与 title 必填;torrent / torrentStorageId / magnetLink / magnetBase64 至少一个。
Key 不要写进客户端、仓库或 issue。notes 中的 HTML 会直接渲染。
身份自检
GET 同一路径,不写库。kind 为 other。
curl -X GET 'https://anibt.net/api/other-releases/publish' \
-H 'Authorization: Bearer <YOUR_API_KEY>'发布
curl -X POST 'https://anibt.net/api/other-releases/publish' \
-H 'Authorization: Bearer <YOUR_API_KEY>' \
-F 'category=manga' \
-F 'title=Example Manga Vol.01' \
-F 'customTags=电子版,中文' \
-F 'torrent=@/path/to/release.torrent'| 代码 | RSS |
|---|---|
manga | /rss/other/manga.xml |
music | /rss/other/music.xml |
raw | /rss/other/raw.xml |
stage | /rss/other/stage.xml |
collection | /rss/other/collection.xml |
movie | /rss/other/movie.xml |
other | /rss/other/other.xml |
title最长 500 字符。customTags最多 20 个,每个最长 80 字符。别名tags。- 无 torrent 时正式发布必须
fileSize > 0,否则422/EMPTY_RELEASE_CONTENT。 - Nyaa 代发规则与番剧发布相同:白名单、multipart、Nyaa tracker。漫画翻译常用
3_2,无损音乐2_1,RAW / 实拍4_4,动画 RAW1_4。
releaseId 详情页:https://anibt.net/other-release/<releaseId>。
失败
| HTTP | 处理 |
|---|---|
| 400 | 补齐 category / title / 种子或磁力 |
| 401 | 检查 Bearer / X-API-Key |
| 403 | 改用含 releases:publish 的 Key |
| 404 | torrentStorageId 不存在;改用 multipart 上传 |
| 429 / 503 | 按 Retry-After 退避 |