summaryrefslogtreecommitdiff
path: root/rhimport
diff options
context:
space:
mode:
Diffstat (limited to 'rhimport')
-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