v3.2.9 - Gocdn not direct links

pull/10/head v3.2.9
Jéluchu 5 years ago
parent 87421d8978
commit fc028ea441

@ -1,4 +1,4 @@
# **Aruppi API** (v3.2.8)
# **Aruppi API** (v3.2.9)
> This API has everything about Japan, from anime, music, radio, images, videos ... to japanese culture
>

@ -1,6 +1,6 @@
{
"name": "aruppi",
"version": "3.2.8",
"version": "3.2.9",
"description": "Aruppi is a custom API to obtain data from the Japanese culture for the mobile app",
"main": "./src/api/api.js",
"scripts": {

@ -345,13 +345,6 @@ const transformUrlServer = async (urlReal) => {
let res = await homgot(data.code.replace("embed", "check"), { parse: true });
data.code = res.file || null
data.direct = true
} else if (data.server === 'gocdn') {
if (data.code.split('/player_gocdn.html#')[1] === undefined) {
data.code = `https://s1.streamium.xyz/gocdn.php?v=${data.code.split('/gocdn.html#')[1]}`
} else {
data.code = `https://s1.streamium.xyz/gocdn.php?v=${data.code.split('/player_gocdn.html#')[1]}`
}
data.direct = true
}
}

@ -517,10 +517,8 @@ const transformUrlServer = async (urlReal) => {
urlReal[index].code = res.file || null
urlReal[index].direct = true
} else if (urlReal[index].server === 'gocdn' ) {
urlReal[index].code = `https://s1.streamium.xyz/gocdn.php?v=${urlReal[index].code.split('/player_gocdn.html#')[1]}`
urlReal[index].direct = true
}
}
urlReal.map(doc => {

Loading…
Cancel
Save