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
v-if="release.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
v-else-if="release.actors.length > 0"

View File

@ -78,7 +78,9 @@
v-tooltip.bottom="release.title"
:title="release.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
v-else-if="release.actors.length > 0"

View File

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

View File

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