From 4a89b12a2c975f47c6431e026ae9fe7e122d90b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9luchu?= Date: Sat, 26 Sep 2020 17:58:37 +0200 Subject: [PATCH] v3.2.5 - Added genre and page field --- README.md | 2 +- package.json | 2 +- src/api/api.js | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f34f560..2f75355 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# **Aruppi API** (v3.2.4) +# **Aruppi API** (v3.2.5) > This API has everything about Japan, from anime, music, radio, images, videos ... to japanese culture > diff --git a/package.json b/package.json index fbbed19..1f5a0d1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aruppi", - "version": "3.2.4", + "version": "3.2.5", "description": "Aruppi is a custom API to obtain data from the Japanese culture for the mobile app", "main": "./src/api/api.js", "scripts": { diff --git a/src/api/api.js b/src/api/api.js index e975b8c..bc34385 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -443,15 +443,16 @@ const getAnimeGenres = async(genres) => { const synopsis = $element.find('div.Description p').eq(1).text().trim(); const rating = $element.find('div.Description p span.Vts').text(); - promises.push(animeflvGenres(id).then(async genres => ({ + promises.push(animeflvGenres(id).then(async () => ({ id: id || null, title: title || null, + genre: genres.genre, + page: genres.page, poster: await imageUrlToBase64(poster) || null, banner: banner || null, synopsis: synopsis || null, type: type || null, - rating: rating || null, - genres: genres || null + rating: rating || null }))) })