From 8d1e81fde8eeeae45e2bb2f62f8f59733727151a Mon Sep 17 00:00:00 2001 From: Nyah Check Date: Sat, 16 Sep 2017 18:35:43 -0600 Subject: [PATCH] Fixed compilation errors. --- Makefile | 3 +-- api/apiconv.go | 2 +- api/apidata.go | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index e737ba3..57f655c 100644 --- a/Makefile +++ b/Makefile @@ -11,9 +11,8 @@ all: clean build fmt lint test vet install build: @echo "+ $@" - @sh ./build.sh @go build -tags "$(BUILDTAGS) cgo" . ## Thinking of downloading the required go deps in here. - #@docker build -t ch3ck/ytd:v1 . + #@docker build -t ch3ck/ytd:v1 . Disable docker build. static: @echo "+ $@" diff --git a/api/apiconv.go b/api/apiconv.go index 00223d0..b001ba3 100644 --- a/api/apiconv.go +++ b/api/apiconv.go @@ -50,7 +50,7 @@ func APIConvertVideo(file string, bitrate uint, id string, decVideo []string) er } else { out, err := os.Create(file) if err != nil { - logrus.Errorf("Unable to download video file.", err) + logrus.Errorf("Unable to download video file: %v", err) return err } err = apiDownloadVideo(id, out) diff --git a/api/apidata.go b/api/apidata.go index 87d8f51..cadaf52 100644 --- a/api/apidata.go +++ b/api/apidata.go @@ -28,7 +28,7 @@ const ( //Youtube Downloader Data file. type RawVideoData struct { Title string `json:"title"` - Author string `json:"author` + Author string `json:"author"` Status string `json:"status"` URLEncodedFmtStreamMap string `json:"url_encoded_fmt_stream_map"` }