diff options
author | Chocobozzz <me@florianbigard.com> | 2020-02-07 08:51:28 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-02-07 09:02:04 +0100 |
commit | 99d362de0c8de3c6ff5a865ecb8dd5b690140a47 (patch) | |
tree | 184b4f010c18a0d2bd398b566ab098cd312341f9 /client/src/app/videos/+video-edit | |
parent | bc053fb3037fe1598a190dee057051e77f0b4a05 (diff) | |
download | PeerTube-99d362de0c8de3c6ff5a865ecb8dd5b690140a47.tar.gz PeerTube-99d362de0c8de3c6ff5a865ecb8dd5b690140a47.tar.zst PeerTube-99d362de0c8de3c6ff5a865ecb8dd5b690140a47.zip |
Support wma and wav audio files
Diffstat (limited to 'client/src/app/videos/+video-edit')
-rw-r--r-- | client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts index aa3a85995..aa87f9581 100644 --- a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts +++ b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts | |||
@@ -293,6 +293,8 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy | |||
293 | } | 293 | } |
294 | 294 | ||
295 | private isAudioFile (filename: string) { | 295 | private isAudioFile (filename: string) { |
296 | return filename.endsWith('.mp3') || filename.endsWith('.flac') || filename.endsWith('.ogg') | 296 | const extensions = [ '.mp3', '.flac', '.ogg', '.wma', '.wav' ] |
297 | |||
298 | return extensions.some(e => filename.endsWith(e)) | ||
297 | } | 299 | } |
298 | } | 300 | } |