mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Add audio support in upload
This commit is contained in:
parent
3daaa19274
commit
536598cfaf
27 changed files with 325 additions and 163 deletions
|
@ -21,7 +21,7 @@ class VideosPreviewCache extends AbstractVideoStaticFileCache <string> {
|
|||
const video = await VideoModel.loadByUUIDWithFile(videoUUID)
|
||||
if (!video) return undefined
|
||||
|
||||
if (video.isOwned()) return { isOwned: true, path: join(CONFIG.STORAGE.PREVIEWS_DIR, video.getPreview().filename) }
|
||||
if (video.isOwned()) return { isOwned: true, path: video.getPreview().getPath() }
|
||||
|
||||
return this.loadRemoteFile(videoUUID)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue