Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

Commit

Permalink
api: Fixed video download file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyah Check committed Sep 27, 2017
1 parent 0ddafea commit 1ad1ac1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/apiconv.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ func ApiDownloadVideo(path, file, url string, video *RawVideoData) error {
if err != nil {
return err
}
mw := io.MultiWriter(out, video)
_, err = io.Copy(mw, resp.Body)
_, err = io.Copy(out, resp.Body)
if err != nil {
log.Println("Download Error: ", err)
return err
Expand Down

0 comments on commit 1ad1ac1

Please sign in to comment.