diff --git a/backend/youtube/youtube-dl/youtube-dl.go b/backend/youtube/youtube-dl/youtube-dl.go index 580dd37..7b13f80 100644 --- a/backend/youtube/youtube-dl/youtube-dl.go +++ b/backend/youtube/youtube-dl/youtube-dl.go @@ -32,7 +32,7 @@ func (d *YoutubeDlDownloader) StartDownload(video *youtube.Video, tasks task.Tas } log.Printf("Download of video ID %s STARTED.", video.ID) - cmd := exec.CommandContext(context.Background(), d.CommandName, "-o", filepath.Join("data/", video.ID), "--newline", d.Url) + cmd := exec.CommandContext(context.Background(), d.CommandName, "-o", filepath.Join("data/", video.Filename), "--newline", d.Url) stdout, err := cmd.StdoutPipe() if err != nil { panic(err)