This commit is contained in:
Erik 2022-03-22 00:46:14 +02:00
parent 97d8926ad1
commit 75f18f4e06
No known key found for this signature in database
GPG Key ID: FEFF4B220DDF5589
2 changed files with 8 additions and 1 deletions

View File

@ -14,7 +14,7 @@ const Panel = () => {
formData.set('name', clipname);
//console.log(selectedFile)
for(const value of formData.values()) console.log('loop',value);
// for(const value of formData.values()) console.log('loop',value);
const response = await fetch('/api/upload', {
method: 'POST',
body: formData,

View File

@ -23,6 +23,13 @@ class ClipIndex extends EventEmitter {
if (!fs.existsSync(this.videoDirectory)) fs.mkdirSync(this.videoDirectory);
if (!fs.existsSync(this.thumbnailDirectory)) fs.mkdirSync(this.thumbnailDirectory);
if (process.platform === 'linux') {
// Not a particularly flexible way of doing it this way --
// shouldn't even need to do this but for some reason it wouldn't find them with the PATH variable
ffmpeg.setFfmpegPath('/usr/bin/ffmpeg');
ffmpeg.setFfprobePath('/usr/bin/ffprobe');
}
this.syncIndex();
}