forked from DebaucheryLibrarian/traxxx
Fixed S3 display support for movies.
This commit is contained in:
@@ -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"
|
||||
>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -315,6 +315,7 @@ const releaseFragment = `
|
||||
path
|
||||
thumbnail
|
||||
lazy
|
||||
isS3
|
||||
comment
|
||||
sfw: sfwMedia {
|
||||
id
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user