diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-09-02 02:23:52 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-09-02 02:23:52 (GMT) |
commit | 8e008af8df83befcce3361954efbab05fb270ce5 (patch) | |
tree | 92088205d92f4647f7b6842b119b107c4f41f517 /rhimport | |
parent | 5f1a1745610f854d2c828439f164354e3ab8ffb6 (diff) |
youtube-dl needs '--netrc' for CBA...
Diffstat (limited to 'rhimport')
-rw-r--r-- | rhimport/fetcher.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rhimport/fetcher.go b/rhimport/fetcher.go index 2740055..0bdbec0 100644 --- a/rhimport/fetcher.go +++ b/rhimport/fetcher.go @@ -139,7 +139,7 @@ func curlProgressCallback(dltotal, dlnow, ultotal, ulnow float64, userdata inter //** ftps:// func checkYoutubeDL(ctx *Context, res *Result, uri *url.URL) *youtubeDLInfo { - cmd := exec.Command("youtube-dl", "--no-playlist", "-f", "bestaudio/best", "--prefer-free-formats", "-J", ctx.SourceUri) + cmd := exec.Command("youtube-dl", "--netrc", "--no-playlist", "-f", "bestaudio/best", "--prefer-free-formats", "-J", ctx.SourceUri) var stderr, stdout bytes.Buffer cmd.Stdout = &stdout cmd.Stderr = &stderr |