Appending movie title if scene title only contains 'scene x'

This commit is contained in:
DebaucheryLibrarian 2021-08-30 01:37:19 +02:00
parent 7bd858f96b
commit 7bfca9596d
4 changed files with 16 additions and 2 deletions

View File

@ -39,7 +39,10 @@
<h2 <h2
v-if="release.title" v-if="release.title"
class="title" class="title"
>{{ release.title }}</h2> >
{{ release.title }}
<template v-if="release.movies?.[0]?.title && /^scene \d+$/i.test(release.title)"><span class="title-composed">&nbsp;from&nbsp;</span>{{ release.movies[0].title }}</template>
</h2>
<h2 <h2
v-else-if="release.actors.length > 0" v-else-if="release.actors.length > 0"

View File

@ -78,7 +78,9 @@
v-tooltip.bottom="release.title" v-tooltip.bottom="release.title"
:title="release.title" :title="release.title"
class="title" class="title"
>{{ release.title }}</h3> >
{{ release.title }}<template v-if="release.movies?.[0]?.title && /^scene \d+$/i.test(release.title)"><span class="title-composed">&nbsp;from&nbsp;</span>{{ release.movies[0].title }}</template>
</h3>
<h3 <h3
v-else-if="release.actors.length > 0" v-else-if="release.actors.length > 0"

View File

@ -362,6 +362,13 @@ const releaseFields = `
slug slug
url url
} }
movies: moviesScenesBySceneId {
movie {
id
title
slug
}
}
isNew isNew
isFavorited isFavorited
isStashed(includeFavorites: false) isStashed(includeFavorites: false)

View File

@ -91,6 +91,8 @@ module.exports = {
networks: [ networks: [
// dummy network for testing // dummy network for testing
'traxxx', 'traxxx',
// porn doe
'forbondage',
], ],
}, },
profiles: [ profiles: [