Fixed S3 display support for movies.

This commit is contained in:
DebaucheryLibrarian
2021-02-23 01:30:38 +01:00
parent c1829c64c2
commit 2b5aac7633
7 changed files with 48 additions and 8 deletions

View File

@@ -59,7 +59,7 @@
<a
v-for="cover in release.covers"
:key="`cover-${cover.id}`"
:href="`${config.media.mediaPath}/${cover.path}`"
:href="getPath(cover)"
target="_blank"
rel="noopener noreferrer"
>

View File

@@ -84,7 +84,7 @@
<span class="movie-title">{{ movie.title }}</span>
<img
v-if="movie.covers.length > 0"
:src="`/media/${movie.covers[0].thumbnail}`"
:src="getPath(movie.covers[0], 'thumbnail')"
class="movie-cover"
>
</router-link>

View File

@@ -315,6 +315,7 @@ const releaseFragment = `
path
thumbnail
lazy
isS3
comment
sfw: sfwMedia {
id

View File

@@ -103,6 +103,7 @@ function initReleasesActions(store, router) {
path
thumbnail
lazy
isS3
sfw: sfwMedia {
id
path
@@ -157,6 +158,16 @@ function initReleasesActions(store, router) {
path
thumbnail
lazy
isS3
}
}
posters: moviesPosterByMovieId {
media {
id
path
thumbnail
lazy
isS3
}
}
covers: moviesCovers {
@@ -165,12 +176,14 @@ function initReleasesActions(store, router) {
path
thumbnail
lazy
isS3
}
}
trailer: moviesTrailerByMovieId {
media {
id
path
isS3
}
}
scenes: moviesScenes {
@@ -189,6 +202,7 @@ function initReleasesActions(store, router) {
path
thumbnail
lazy
isS3
comment
sfw: sfwMedia {
id