v2.6.1 - Fix Servers List

pull/1/head v2.6.1
Jéluchu 5 years ago
parent b07d16d33d
commit bc9e712614

@ -1,4 +1,4 @@
# **Aruppi API** (v2.6.0) # **Aruppi API** (v2.6.1)
> 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": "2.6.0", "version": "2.6.1",
"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": {

@ -7,7 +7,7 @@ router.get('/', (req, res) => {
res.json({ res.json({
message: 'Aruppi API - 🎏', message: 'Aruppi API - 🎏',
author: 'Jéluchu', author: 'Jéluchu',
version: '2.6.0', version: '2.6.1',
credits: 'The bitch loves APIs that offers data to Aruppi App', credits: 'The bitch loves APIs that offers data to Aruppi App',
entries: [ entries: [
{ {

@ -61,10 +61,14 @@ async function videoServersJK(id) {
Array.from({length: serverTempList.length} , (v , k) =>{ Array.from({length: serverTempList.length} , (v , k) =>{
let name = serverNames[k]; let name = serverNames[k];
let video = serverTempList[k]; let video = serverTempList[k];
serverList.push({server: name, video: video}); serverList.push({
id: name.toLowerCase(),
url: video,
direct: true
});
}); });
serverList = serverList.filter(function( obj ) { serverList = serverList.filter(function( obj ) {
return obj.server !== 'Xtreme S'; return obj.id !== 'xtreme s';
}); });
return await Promise.all(serverList); return await Promise.all(serverList);

Loading…
Cancel
Save