mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
Merge pull request #9280 from heitbaum/wget
scripts and tools: only use --passive-ftp for ftp: urls
This commit is contained in:
@@ -357,7 +357,10 @@ class MyUtility(object):
|
||||
while attempts < retries:
|
||||
if stopped.is_set(): break
|
||||
attempts += 1
|
||||
(result, output) = MyUtility.runcommand(msgs, "wget --output-file=- --timeout=30 --tries=3 --passive-ftp --no-check-certificate -O %s %s" % (filename_data, url), logfile=filename_log)
|
||||
if url.startswith("ftp:"):
|
||||
(result, output) = MyUtility.runcommand(msgs, "wget --output-file=- --timeout=30 --tries=3 --no-check-certificate -O %s %s" % (filename_data, url), logfile=filename_log)
|
||||
else
|
||||
(result, output) = MyUtility.runcommand(msgs, "wget --output-file=- --timeout=30 --tries=3 --passive-ftp --no-check-certificate -O %s %s" % (filename_data, url), logfile=filename_log)
|
||||
if result == 0:
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user