To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 6af840c7 authored by Christof Gerber's avatar Christof Gerber
Browse files

Document python requirement. Remove debug stuff

parent e7bd5cce
Pipeline #35025 passed with stages
in 5 minutes and 29 seconds
......@@ -7,6 +7,7 @@ Go wrapper library for youtube-dl and YouTube Data API
### Requirements
* Env. variable `YOUTUBE_DATA_API_KEY` needs to be set.
* Binary `youtube-dl` needs to be callable.
* `youtube-dl` requires `python`
### youtube-dl linux cli tool
......
......@@ -12,15 +12,15 @@ import (
func TestMain(m *testing.M) {
// Make sure youtube-dl binary exists
path, err := exec.LookPath("youtube-dl")
_, err := exec.LookPath("youtube-dl")
if err != nil {
log.Fatal(err)
}
cmd := exec.Command("youtube-dl", "--version")
_, err = cmd.Output()
if err != nil {
log.Fatal(err)
}
log.Warn(path)
cmd := exec.Command(path, "--version")
out, err := cmd.Output()
log.Warn(string(out))
log.Warn(err)
os.Exit(m.Run())
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment