diff options
Diffstat (limited to 'server/lib/files-cache')
-rw-r--r-- | server/lib/files-cache/videos-preview-cache.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/files-cache/videos-preview-cache.ts b/server/lib/files-cache/videos-preview-cache.ts index 48d2cb52c..d19c3f4f4 100644 --- a/server/lib/files-cache/videos-preview-cache.ts +++ b/server/lib/files-cache/videos-preview-cache.ts | |||
@@ -37,7 +37,7 @@ class VideosPreviewCache extends AbstractVideoStaticFileCache <string> { | |||
37 | 37 | ||
38 | const preview = video.getPreview() | 38 | const preview = video.getPreview() |
39 | const destPath = join(FILES_CACHE.PREVIEWS.DIRECTORY, preview.filename) | 39 | const destPath = join(FILES_CACHE.PREVIEWS.DIRECTORY, preview.filename) |
40 | const remoteUrl = preview.getFileUrl(video) | 40 | const remoteUrl = preview.getOriginFileUrl(video) |
41 | 41 | ||
42 | try { | 42 | try { |
43 | await doRequestAndSaveToFile(remoteUrl, destPath) | 43 | await doRequestAndSaveToFile(remoteUrl, destPath) |