mirror of
https://github.com/Schmenn/discord-exploits.git
synced 2024-12-22 10:05:37 +00:00
Error Fix
[^] Fixed irritating error that occurred when FFmpeg was not found.
This commit is contained in:
parent
3c0f793bd4
commit
5d9e1a854a
|
@ -1,14 +1,18 @@
|
|||
package modules
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"os/exec"
|
||||
)
|
||||
|
||||
// CheckForFFmpeg looks for ffmpeg in the path
|
||||
func CheckForFFmpeg() string {
|
||||
func CheckForFFmpeg() (string) {
|
||||
path, err := exec.LookPath("ffmpeg")
|
||||
|
||||
Check(err)
|
||||
|
||||
if err != nil {
|
||||
fmt.Println("Could not find FFmpeg, maybe you don't have it installed or on your PATH")
|
||||
os.Exit(1)
|
||||
}
|
||||
return path
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue