From 1024c9e9af742baca2f063e902683429b90981a4 Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Thu, 13 Aug 2015 14:12:28 +0100 Subject: [PATCH] Checking output of youtube-dl when downloading[ci skip] --- youtube_dl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl.go b/youtube_dl.go index 809c252..1d065a2 100644 --- a/youtube_dl.go +++ b/youtube_dl.go @@ -41,7 +41,7 @@ func (dl *YouTubeDLSong) Download() error { // Checks to see if song is already downloaded if _, err := os.Stat(fmt.Sprintf("%s/.mumbledj/songs/%s", dj.homeDir, dl.Filename())); os.IsNotExist(err) { cmd := exec.Command("youtube-dl", "--no-mtime", "--output", fmt.Sprintf("%s/.mumbledj/songs/%s", dj.homeDir, dl.Filename()), "--format m4a", "--prefer-ffmpeg", dl.url) - output, err = cmd.CombinedOutput() + output, err := cmd.CombinedOutput() if err == nil { if dj.conf.Cache.Enabled { dj.cache.CheckMaximumDirectorySize()