pls work
This commit is contained in:
parent
97d8926ad1
commit
75f18f4e06
@ -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,
|
||||
|
@ -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();
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user