switch back to youtube-dl for downloads only
This commit is contained in:
parent
d7e194cb5c
commit
2cf3526c74
1 changed files with 2 additions and 2 deletions
|
@ -279,8 +279,8 @@ func (v *YoutubeVideo) download() error {
|
||||||
quality := qualities[i]
|
quality := qualities[i]
|
||||||
argsWithFilters := append(ytdlArgs, "-fbestvideo[ext=mp4][height<="+quality+"]+bestaudio[ext!=webm]")
|
argsWithFilters := append(ytdlArgs, "-fbestvideo[ext=mp4][height<="+quality+"]+bestaudio[ext!=webm]")
|
||||||
argsWithFilters = append(argsWithFilters, userAgent...)
|
argsWithFilters = append(argsWithFilters, userAgent...)
|
||||||
cmd := exec.Command("youtube-dlc", argsWithFilters...)
|
cmd := exec.Command("youtube-dl", argsWithFilters...)
|
||||||
log.Printf("Running command youtube-dlc %s", strings.Join(argsWithFilters, " "))
|
log.Printf("Running command youtube-dl %s", strings.Join(argsWithFilters, " "))
|
||||||
|
|
||||||
stderr, err := cmd.StderrPipe()
|
stderr, err := cmd.StderrPipe()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue