-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
新增一种 v2 model 的流程不清晰 #507
Labels
Comments
从 provider 的开发角度,怎样快速的从 v1 迁移到 v2 ? 大局上来看
2023-05-20 更新:强烈推荐 以迁移 feeluown-ytmusic 的 YtmusicAlbumModel 为例
YtmusicArtistModel 同样可以按照上述方式迁移。额外要做的是,对于 aritst model,还要迁移 create_songs_g / artist_create_songs_rd 等接口。这种接口一开始迁移的时候,可以先不实现。要测试代码是否符合预期,只需要打开歌曲详情页,然后进入“简介”页,如果能正常显示,说明成功了一半。随后迁移 create_songs_g 等接口。 |
This was referenced Mar 6, 2022
Before 2023-05-20(注:下面文字有点晦涩难懂,看 2023-05-20 更新的那段更好) 具体到一个,比如以 netease ArtistModel 为例(假设 BriefXModel 都已经实现好了)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
当我们在 library 包中支持一种新的 model,我们需要做若干修改,具体要做哪些?目前没有一个清晰的列表,程序很容易出现 bug 和一些非预期现象。
下面是一个持续更新的 checklist
grep {model}.{attr}
的方式),这些代码通常需要修改。以 Album 为例,之前会假设每个 album model 都有 artists 属性,但是当支持新的 v2 model 后,只有 normal model 才会有,而 brief model 没有。所以需要 grepalbum.artists
来搜索看哪些地方有这种调用。The text was updated successfully, but these errors were encountered: