Skip to content
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

MAL Sync integration #6

Open
liurui39660 opened this issue Dec 10, 2021 · 7 comments
Open

MAL Sync integration #6

liurui39660 opened this issue Dec 10, 2021 · 7 comments

Comments

@liurui39660
Copy link

I'm requesting MAL Sync to add support for Bangumi but they need the following APIs to be implemented. Detailed discussions can be found at MALSync/MALSync#792.

lolamtisch commented on Jul 9

This should prety much be all informations needed per api call.

Single Entry
    internalId: any
    malId: number
    type: 'anime' | 'manga'
    url: string
    userStatus: 'watching' | 'pantowatch' | 'completed' ....
    userScore: any
    userWatchedEpisode / chapter: number
    userWatchedVolumens: number
    totalEpisodes: number
    totalVolumes: number
    image: string
    globalScore: any


// possible to filter by userState 
list[]
    internalId: any
    malId: number
    type: 'anime' | 'manga'
    title: string
    url: string
    totalEp: number
    userWatchedEpisode / chapter: number
    userStatus: 'watching' | 'pantowatch' | 'completed' ....
    userScore: any
    image: string
    
Search[]
    id: number;
    name: string;
    altNames: string[];
    url: string;
    image: string;
    
Overview metadata:
   Just metadata not important
@trim21
Copy link
Contributor

trim21 commented Dec 10, 2021

能不能重新描述一下需要那些数据

比如这个 malIduserState

@liurui39660
Copy link
Author

liurui39660 commented Dec 10, 2021

malId是作品在MAL上的ID,如无职转生S02,https://myanimelist.net/anime/45576/Mushoku_Tensei__Isekai_Ittara_Honki_Dasu_Part_2,网址中的45576即是作品的MAL ID。

userState是用户的观看状态,对应即Bangumi的“想看”,“在看”,“看过”,“搁置“,“抛弃”。

@trim21
Copy link
Contributor

trim21 commented Dec 10, 2021

malId是作品在MAL上的ID,如无职转生S02,https://myanimelist.net/anime/45576/Mushoku_Tensei__Isekai_Ittara_Honki_Dasu_Part_2,网址中的`45576`即是作品的MAL ID。

userState是用户的观看状态,对应即Bangumi的“想看”,“在看”,“看过”,“搁置“,“抛弃”。

就是subject_id? 还是说值是subject_id, key是malId

@liurui39660
Copy link
Author

依然用无职转生S02为例,API可以是这样。

{
	"internalId": 325585,
	"malId": 45576,
	...
}

因为 https://bgm.tv/subject/325585https://myanimelist.net/anime/45576/Mushoku_Tensei__Isekai_Ittara_Honki_Dasu_Part_2

具体的需要找MAL Sync开发组确认,我并不是开发组成员。

@trim21
Copy link
Contributor

trim21 commented Dec 10, 2021

目前看来未必能实现,需要有维基人填写对应的mal id。

@trim21
Copy link
Contributor

trim21 commented Dec 10, 2021

比如你举例的无职转生就没有维基人填这个,在服务端也没法实现这样的功能。

@liurui39660
Copy link
Author

利用MAL或AniList的搜索API配合作品日文名可以部分解决,在我之前的小规模测试中可以达到95%的准确度。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants