videoob: support curl for downloading
This commit is contained in:
parent
ccfc695f0e
commit
89e1917a86
1 changed files with 5 additions and 2 deletions
|
|
@ -121,9 +121,12 @@ class Videoob(ReplApplication):
|
|||
return 1
|
||||
args = ('mimms', '-r', video.url, dest)
|
||||
else:
|
||||
if not check_exec('wget'):
|
||||
if check_exec('wget'):
|
||||
args = ('wget', '-c', video.url, '-O', dest)
|
||||
elif check_exec('curl'):
|
||||
args = ('curl', '-C', '-', video.url, '-o', dest)
|
||||
else:
|
||||
return 1
|
||||
args = ('wget', '-c', video.url, '-O', dest)
|
||||
|
||||
os.spawnlp(os.P_WAIT, args[0], *args)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue