Shows CombinedOutput of command to allow for debugging
parent
ba1bf0afde
commit
df57d7a57e
|
|
@ -137,8 +137,13 @@ func operationHandler() {
|
|||
cmd := exec.Command("youtube-dl", o.URL)
|
||||
cmd.Dir = dir + "/"
|
||||
currentWork[i] = o.URL // Adds the URL to list of current work
|
||||
cmd.Run()
|
||||
output, err := cmd.CombinedOutput()
|
||||
log.Print("Finished: " + o.URL)
|
||||
if err != nil {
|
||||
log.Print("Failed to download")
|
||||
log.Print(err)
|
||||
}
|
||||
log.Print(string(output))
|
||||
delete(currentWork, i) // Remove the URL from list of current work
|
||||
|
||||
// Clean up directory
|
||||
|
|
|
|||
Loading…
Reference in New Issue