Add resume option for video downloading

Signed-off-by: ianux <ianux@free.fr>
Signed-off-by: Romain Bignon <romain@symlink.me>
This commit is contained in:
ianux 2013-03-09 18:08:47 -04:00 committed by Romain Bignon
commit d01b0ef58f

View file

@ -116,11 +116,11 @@ class Videoob(ReplApplication):
elif video.url.startswith('mms'):
if not check_exec('mimms'):
return 1
args = ('mimms', video.url, dest)
args = ('mimms', '-r', video.url, dest)
else:
if not check_exec('wget'):
return 1
args = ('wget', video.url, '-O', dest)
args = ('wget', '-c', video.url, '-O', dest)
os.spawnlp(os.P_WAIT, args[0], *args)