Comments (7)
另外,还有 character info
// Info represents a person/character info
type Info struct {
Birth string `json:"birth,omitempty"`
Height string `json:"height,omitempty"`
Gender string `json:"gender,omitempty"`
Alias CharacterAlias `json:"alias,omitempty"`
Source []string `json:"source,omitempty"`
NameCN string `json:"name_cn,omitempty"`
CV string `json:"cv,omitempty"`
Twitter string `json:"twitter,omitempty"`
}
这个里面的 source,有的地方是 string 的 anidb.net
,有的地方是 array,也是类似的问题?
from api.
这个是旧版 API 遗留问题,请默认 eps 为 array,需要计数时使用新增的 eps_count。
from api.
其实我遇到的主要问题是在写程序的时候用的是同一个
// Subject respents a Bangumi subject detail
type Subject struct {
ID int `json:"id"`
URL string `json:"url"`
Type SubjectType `json:"type"`
Name string `json:"name"`
NameCN string `json:"name_cn,omitempty"`
Summary string `json:"summary,omitempty"`
Eps []Ep `json:"eps,omitempty"`
EpsCount int `json:"eps_count,omitempty"`
AirDate string `json:"air_date,omitempty"`
AirWeekdays int `json:"air_weekday,omitempty"`
Rating SubjectRating `json:"rating,omitempty"`
Rank int `json:"rank,omitempty"`
Images Images `json:"images,omitempty"`
Collection SubjectCollection `json:"collection,omitempty"`
Character []Character `json:"crt,omitempty"`
Staff []Person `json:"person,omitempty"`
Topic []Topic `json:"topic,omitempty"`
Blog []Blog `json:"blog,omitempty"`
}
如果 eps 不是 array 的话 json.Unmarshal 会抛错。
如果不好改那我先强制用 large 吧。
from api.
@everpcpc 我这边也遇到了同样的问题
from api.
info 里面的信息类型都是不确定的
from api.
建议small时,ep返回null。
另外传入responseGroup能否改为忽略大小写,现在传Large,效果是等价于small的。
from api.
info 里面的信息类型都是不确定的
这也是历史遗留问题吗?可能修复吗?
另外还有其他字段的类型是不确定的吗?
from api.
Related Issues (20)
- 使用v0 API搜索特定keyword时出现 Internal Server Error HOT 8
- https://bgm.tv/oauth/token_status 返回的 "expires" 是什么? HOT 1
- 章节类型`MAD = 5`无效 HOT 1
- The length of list not match with the given max_results in search API
- character 角色中文名 HOT 2
- /v0/indices/index_id/subjects返回的数据错误
- 返回图片列分辨率分布不合理 HOT 1
- 角色的人物接口返回图片皆为404 HOT 1
- typo HOT 1
- refresh_token刷新失败
- v0/search/subjects在nsfw=true条件下并非为包含关系 HOT 1
- new api request: can we add api for user blog
- 请问一下获取条目信息的api有限制访问频次么? HOT 2
- 修改收藏 标签空集合报错 HOT 1
- 关于api.bgm.tv/calendar可以输出成这样的格式吗? HOT 1
- Feature Request: api for timeline
- Feature Request: api for subject comments, reviews, board
- Typo: incorrect status code
- /v0/subjects/{subject_id}返回的rank会意外为0
- [Feature Request] /v0/users/{username}/collections能否添加nsfw字段
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api.