Save proper filename
This commit is contained in:
parent
55d95b1e58
commit
643caedd8c
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ func (d *YoutubeDlDownloader) StartDownload(video *youtube.Video, tasks task.Tas
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("Download of video ID %s STARTED.", video.ID)
|
log.Printf("Download of video ID %s STARTED.", video.ID)
|
||||||
cmd := exec.CommandContext(context.Background(), d.CommandName, "-o", filepath.Join("data/", video.Filename), "--newline", d.Url)
|
cmd := exec.CommandContext(context.Background(), d.CommandName, "-o", filepath.Join("data/", video.ID+filepath.Ext(video.Filename)), "--newline", d.Url)
|
||||||
stdout, err := cmd.StdoutPipe()
|
stdout, err := cmd.StdoutPipe()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|
Loading…
Reference in a new issue