KatsuteDev/Mal4J

Undocumented videos field

Katsute opened this issue · 3 comments

Feature

According to the below post there is an undocumented videos field.

Reason

https://myanimelist.net/forum/?topicid=2042036&show=0#msg67351727

ZeroCrystal :

Hi! You can add the (undocumented) videos field to get a list of promotional videos.
For example:

GET https://api.myanimelist.net/v2/anime/1?fields=videos
{
    "id": 1,
    "title": "Cowboy Bebop",
    "main_picture": {
        "medium": "https://api-cdn.myanimelist.net/images/anime/4/19644.jpg",
        "large": "https://api-cdn.myanimelist.net/images/anime/4/19644l.jpg"
    },
    "videos": [
        {
            "id": 2224,
            "title": "PV Blu-ray Box version",
            "url": "https://youtu.be/qig4KOK2R2g",
            "created_at": 1452104316000,
            "updated_at": 1453125827000,
            "thumbnail": "https://i.ytimg.com/vi/qig4KOK2R2g/mqdefault.jpg"
        },
        {
            "id": 2114,
            "title": "PV 2",
            "url": "https://youtu.be/QCaEJZqLeTU",
            "created_at": 1452101124000,
            "updated_at": 1453126159000,
            "thumbnail": "https://i.ytimg.com/vi/QCaEJZqLeTU/mqdefault.jpg"
        },
        {
            "id": 3065,
            "title": "PV 1 English dub version",
            "url": "https://youtu.be/gY5nDXOtv_o",
            "created_at": 1453126096000,
            "updated_at": 1457702231000,
            "thumbnail": "https://i.ytimg.com/vi/gY5nDXOtv_o/mqdefault.jpg"
        }
    ]
}
MyAnimeList.net
Hello, members and mal team. Thank you for this amazing site and cool public api. I need a promotion video to show it on anime details screen in my android app. Any chances to have it via public api like "pictures" field or something like that.
Video{
   id: int,
   title: String,
   url: String,
   createdAt: Date,
   updatedAt: Date,
   thumbnail: String
}

@mashiro-san create a branch videos

@Katsute I have created a new branch videos@d7a8127