summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-09-02 02:23:52 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-09-02 02:23:52 (GMT)
commit8e008af8df83befcce3361954efbab05fb270ce5 (patch)
tree92088205d92f4647f7b6842b119b107c4f41f517
parent5f1a1745610f854d2c828439f164354e3ab8ffb6 (diff)
youtube-dl needs '--netrc' for CBA...
-rw-r--r--rhimport/fetcher.go2
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