diff options
| author | bobzel <zzzman@gmail.com> | 2023-05-13 11:44:36 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-05-13 11:44:36 -0400 |
| commit | 0849fbd97c61688d51e5fea6cf8edc47989df5de (patch) | |
| tree | 422bf02e72429f0d77b5cd885274a8a74aa731ea /src/server/DashUploadUtils.ts | |
| parent | dca61505ba138eef3819b16b760ec81becf9329e (diff) | |
fixed caption scrolling in carousel view. fixed display of audio tags in textboxes. fixed screengrab video upload and made dictation view possible (but needs reworking)
Diffstat (limited to 'src/server/DashUploadUtils.ts')
| -rw-r--r-- | src/server/DashUploadUtils.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/DashUploadUtils.ts b/src/server/DashUploadUtils.ts index 070d49ec3..11523a9d8 100644 --- a/src/server/DashUploadUtils.ts +++ b/src/server/DashUploadUtils.ts @@ -205,6 +205,7 @@ export namespace DashUploadUtils { .videoCodec('copy') // this will copy the data instead of reencode it .save(file.path.replace('.mkv', '.mp4')) .on('end', res) + .on('error', (e: any) => console.log(e)) ); file.path = file.path.replace('.mkv', '.mp4'); format = '.mp4'; @@ -234,7 +235,7 @@ export namespace DashUploadUtils { return { source: file, result: { name: 'Unsupported video format', message: `Could not upload unsupported file (${name}). Please convert to an .mp4` } }; } } - if (videoFormats.includes(format)) { + if (videoFormats.includes(format) || format.includes('.webm')) { return MoveParsedFile(file, Directory.videos); } fs.unlink(path, () => {}); |
