aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/files-cache
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-05-16 16:55:34 +0200
committerChocobozzz <me@florianbigard.com>2019-05-16 17:16:47 +0200
commit536598cfafab1c5e24e881db1c528489f804fb6b (patch)
tree9d15e809218174622d68d21b0c7f0a73147187db /server/lib/files-cache
parent3daaa1927474869f8dbaddd6b94b4c071e314e10 (diff)
downloadPeerTube-536598cfafab1c5e24e881db1c528489f804fb6b.tar.gz
PeerTube-536598cfafab1c5e24e881db1c528489f804fb6b.tar.zst
PeerTube-536598cfafab1c5e24e881db1c528489f804fb6b.zip
Add audio support in upload
Diffstat (limited to 'server/lib/files-cache')
-rw-r--r--server/lib/files-cache/videos-preview-cache.ts2
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 14be7f24a..a68619d07 100644
--- a/server/lib/files-cache/videos-preview-cache.ts
+++ b/server/lib/files-cache/videos-preview-cache.ts
@@ -21,7 +21,7 @@ class VideosPreviewCache extends AbstractVideoStaticFileCache <string> {
21 const video = await VideoModel.loadByUUIDWithFile(videoUUID) 21 const video = await VideoModel.loadByUUIDWithFile(videoUUID)
22 if (!video) return undefined 22 if (!video) return undefined
23 23
24 if (video.isOwned()) return { isOwned: true, path: join(CONFIG.STORAGE.PREVIEWS_DIR, video.getPreview().filename) } 24 if (video.isOwned()) return { isOwned: true, path: video.getPreview().getPath() }
25 25
26 return this.loadRemoteFile(videoUUID) 26 return this.loadRemoteFile(videoUUID)
27 } 27 }