From 0ed79272836da32c8c722e2ed88b3bade747d181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9luchu?= Date: Sun, 31 Jan 2021 22:06:30 +0100 Subject: [PATCH 1/6] Added new type of anime legal platforms --- src/api/api.js | 11 +++++++---- src/api/routes/index.js | 7 ++++--- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/api/api.js b/src/api/api.js index 7165fb6..0023aa2 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -281,7 +281,7 @@ const getAnimeServers = async (id) => { return await videoServersJK(id); } else { const data = await homgot(`${BASE_ANIMEFLV_JELU}GetAnimeServers/${id}`, { parse: true }); - + return await transformUrlServer(data.servers); } }; @@ -426,7 +426,8 @@ const getDestAnimePlatforms = async () => { return data.map(doc =>({ id: doc.id, name: doc.name, - logo: doc.logo + logo: doc.logo, + link: doc.link })); }; @@ -444,7 +445,7 @@ const getPlatforms = async (id) => { cover: doc.cover })); - } if (id === "producers" || id === "apps" || id === "publishers") { + } if (id === "producers" || id === "apps" || id === "publishers" || "events") { data = await homgot(`${BASE_ARUPPI}res/documents/animelegal/type/${id}.json`, { parse: true }); @@ -460,7 +461,9 @@ const getPlatforms = async (id) => { twitter: doc.twitter, instagram: doc.instagram, webInfo: doc.webInfo, - webpage: doc.webpage + webpage: doc.webpage, + latitude: doc.latitude || null, + longitude: doc.longitude || null })); } else { diff --git a/src/api/routes/index.js b/src/api/routes/index.js index d661930..c336b39 100644 --- a/src/api/routes/index.js +++ b/src/api/routes/index.js @@ -274,7 +274,7 @@ router.get('/moreInfo/:title' , (req, res) =>{ res.status(200).json(info); } else { res.status(500).json({ message: 'Aruppi lost in the shell'}); - } + } }).catch((err) =>{ console.error(err); }); @@ -287,14 +287,14 @@ router.get('/getEpisodes/:title' , (req, res) =>{ api.getEpisodes(title) .then(episodes => { - + if (episodes.length > 0) { res.status(200).json({episodes}); } else { res.status(500).json({ message: 'Aruppi lost in the shell'}); } }).catch((err) =>{ - + console.error(err); }); @@ -519,6 +519,7 @@ router.get('/randomAnime', (req, res) => { api.getRandomAnime() .then(anime => { if (anime) { + res.set('Cache-Control', 'no-store'); res.status(200).json(anime); }else { res.status(500).json({ message: 'Aruppi lost in the shell'}); From 9a7d30285493f9cffb47bb99129799fdf2b5c7c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9luchu?= Date: Mon, 1 Feb 2021 21:40:36 +0100 Subject: [PATCH 2/6] Updated to v3.4.0 --- README.md | 2 +- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c22413f..287298d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# **Aruppi API** (v3.3.7) +# **Aruppi API** (v3.4.0) > This API has everything about Japan, from anime, music, radio, images, videos ... to japanese culture > diff --git a/package-lock.json b/package-lock.json index 478b58a..2825e63 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "aruppi", - "version": "3.3.7", + "version": "3.4.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 34bf67d..9de57e7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aruppi", - "version": "3.3.7", + "version": "3.4.0", "description": "Aruppi is a custom API to obtain data from the Japanese culture for the mobile app", "main": "./src/api/api.js", "scripts": { From 8de23d0bd9b7b3490e9e36ce899bbc72420083a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cale=C3=ADdoscopio?= <61250854+capitanwesler@users.noreply.github.com> Date: Tue, 2 Feb 2021 19:57:04 +0000 Subject: [PATCH 3/6] Update version 3.4.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9de57e7..d5bfac1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aruppi", - "version": "3.4.0", + "version": "3.4.1", "description": "Aruppi is a custom API to obtain data from the Japanese culture for the mobile app", "main": "./src/api/api.js", "scripts": { From f80aaf6d12eeb594766d13166af97ca8723eef73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cale=C3=ADdoscopio?= <61250854+capitanwesler@users.noreply.github.com> Date: Tue, 2 Feb 2021 19:58:34 +0000 Subject: [PATCH 4/6] Update version 3.4.1 --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 2825e63..1130e5f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "aruppi", - "version": "3.4.0", + "version": "3.4.1", "lockfileVersion": 1, "requires": true, "dependencies": { From 8fcc690dce817e8e4ba022270bf36325cd1fb7eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cale=C3=ADdoscopio?= <61250854+capitanwesler@users.noreply.github.com> Date: Tue, 2 Feb 2021 19:59:09 +0000 Subject: [PATCH 5/6] Update version 3.4.1 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 287298d..26a1dd7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# **Aruppi API** (v3.4.0) +# **Aruppi API** (v3.4.1) > This API has everything about Japan, from anime, music, radio, images, videos ... to japanese culture > From 18724d7226d1425c613e8891943ae8563f214101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9luchu?= Date: Tue, 2 Feb 2021 23:50:24 +0100 Subject: [PATCH 6/6] Change version of v2 (deprecated) --- README.md | 2 +- src/v2/api/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 26a1dd7..feb2dcb 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ But if you need to see the code or the operation of the old version you can do i Aruppi has grown since it was launched and we need to continue improving the application along with the services to be able to give new features. -At this time version 2.6.8 will remain functional until Aruppi App users fully migrate to version 1.5.0 of the app +At this time version 2.6.9 will remain functional until Aruppi App users fully migrate to version 1.5.0 of the app ## **:handshake: Contributing** diff --git a/src/v2/api/index.js b/src/v2/api/index.js index 487c629..2277027 100644 --- a/src/v2/api/index.js +++ b/src/v2/api/index.js @@ -8,7 +8,7 @@ router.get('/', (req, res) => { res.json({ message: 'Aruppi API - 🎏', author: 'Jéluchu', - version: '2.6.8', + version: '2.6.9', credits: 'The bitch loves APIs that offers data to Aruppi App', deprecated: 'This version will be available until users migrate to Aruppi App v1.5.0', entries: [