diff options
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r-- | server/models/video/video.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index ae29cf286..1321337ff 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -63,6 +63,7 @@ import { | |||
63 | CONSTRAINTS_FIELDS, | 63 | CONSTRAINTS_FIELDS, |
64 | HLS_REDUNDANCY_DIRECTORY, | 64 | HLS_REDUNDANCY_DIRECTORY, |
65 | HLS_STREAMING_PLAYLIST_DIRECTORY, | 65 | HLS_STREAMING_PLAYLIST_DIRECTORY, |
66 | LAZY_STATIC_PATHS, | ||
66 | REMOTE_SCHEME, | 67 | REMOTE_SCHEME, |
67 | STATIC_DOWNLOAD_PATHS, | 68 | STATIC_DOWNLOAD_PATHS, |
68 | STATIC_PATHS, | 69 | STATIC_PATHS, |
@@ -1856,7 +1857,7 @@ export class VideoModel extends Model<VideoModel> { | |||
1856 | if (!preview) return null | 1857 | if (!preview) return null |
1857 | 1858 | ||
1858 | // We use a local cache, so specify our cache endpoint instead of potential remote URL | 1859 | // We use a local cache, so specify our cache endpoint instead of potential remote URL |
1859 | return join(STATIC_PATHS.PREVIEWS, preview.filename) | 1860 | return join(LAZY_STATIC_PATHS.PREVIEWS, preview.filename) |
1860 | } | 1861 | } |
1861 | 1862 | ||
1862 | toFormattedJSON (options?: VideoFormattingJSONOptions): Video { | 1863 | toFormattedJSON (options?: VideoFormattingJSONOptions): Video { |