From d396935243133b5fe1c7a288209957e26e9192d3 Mon Sep 17 00:00:00 2001 From: Hedayat Vatankhah Date: Sun, 12 Oct 2014 02:17:13 +0330 Subject: Fix downloading from https (and probably other) links --- urlgrabber-ext-down-yfd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/urlgrabber-ext-down-yfd b/urlgrabber-ext-down-yfd index 9aa93b1..1760653 100755 --- a/urlgrabber-ext-down-yfd +++ b/urlgrabber-ext-down-yfd @@ -54,7 +54,7 @@ def _getAria2CArgs(urls, remote_path, local_path, proxies = None): return args; def downloadFile(urls, remote_path, local_path, proxies = None): - if urls[0].startswith("http://") or urls[0].startswith("ftp://"): + if not urls[0].startswith("file:"): args = _getAria2CArgs(urls, remote_path, local_path) popen = subprocess.Popen(args, stdout=2) popen.wait() -- cgit