v3.2.5 - Added genre and page field

pull/4/head v3.2.5
Jéluchu 5 years ago
parent 1a8c1e1258
commit 4a89b12a2c

@ -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 > This API has everything about Japan, from anime, music, radio, images, videos ... to japanese culture
> >

@ -1,6 +1,6 @@
{ {
"name": "aruppi", "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", "description": "Aruppi is a custom API to obtain data from the Japanese culture for the mobile app",
"main": "./src/api/api.js", "main": "./src/api/api.js",
"scripts": { "scripts": {

@ -443,15 +443,16 @@ const getAnimeGenres = async(genres) => {
const synopsis = $element.find('div.Description p').eq(1).text().trim(); const synopsis = $element.find('div.Description p').eq(1).text().trim();
const rating = $element.find('div.Description p span.Vts').text(); 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, id: id || null,
title: title || null, title: title || null,
genre: genres.genre,
page: genres.page,
poster: await imageUrlToBase64(poster) || null, poster: await imageUrlToBase64(poster) || null,
banner: banner || null, banner: banner || null,
synopsis: synopsis || null, synopsis: synopsis || null,
type: type || null, type: type || null,
rating: rating || null, rating: rating || null
genres: genres || null
}))) })))
}) })

Loading…
Cancel
Save