Corrected name display on releases page

This commit is contained in:
Kylart 2017-05-08 13:16:24 +02:00
parent 0d689caa2e
commit 3b174dceec
2 changed files with 3 additions and 2 deletions

View File

@ -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,

View File

@ -45,7 +45,7 @@
<v-container fluid style="padding: 0;">
<v-row>
<v-col class="elem-title" xs9 v-tooltip:top="{ html: item.name }">
<h6>{{ item.name }}</h6>
<h6>{{ item.rawName }}</h6>
</v-col>
<v-col v-tooltip:top="{ html: 'Episode ' + item.ep }" class="elem-ep text-xs-right" xs3>
<h6>Ep {{ item.ep }}</h6>