diff --git a/assets/scripts/init/horrible.js b/assets/scripts/init/horrible.js index 8ca7a44..161977d 100644 --- a/assets/scripts/init/horrible.js +++ b/assets/scripts/init/horrible.js @@ -22,7 +22,7 @@ exports.getLatest = (url, res) => { { const realName = result[i].name const name = realName.split(' ').slice(1).join(' ') - const rawName = realName.split(' ').slice(1, -2).join(' ') + const rawName = name.split(' ').slice(0, -2).join(' ') const researchName = rawName.split(' ').join('').toLowerCase() const ep = name.split(' ').slice(-1)[0] const link = result[i].link @@ -38,6 +38,7 @@ exports.getLatest = (url, res) => { toReturn[i] = { name: name, + rawName: rawName, researchName: researchName, ep: ep, magnetLink: link, diff --git a/pages/index.vue b/pages/index.vue index 0dc058e..8f7f8ab 100755 --- a/pages/index.vue +++ b/pages/index.vue @@ -45,7 +45,7 @@ -
{{ item.name }}
+
{{ item.rawName }}
Ep {{ item.ep }}