From 89e1917a86fd947c597fe93bcf78bb9c8755e76b Mon Sep 17 00:00:00 2001 From: Vincent A Date: Wed, 20 Nov 2013 22:19:49 +0100 Subject: [PATCH] videoob: support curl for downloading --- weboob/applications/videoob/videoob.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/weboob/applications/videoob/videoob.py b/weboob/applications/videoob/videoob.py index b40436a1..c236ec86 100644 --- a/weboob/applications/videoob/videoob.py +++ b/weboob/applications/videoob/videoob.py @@ -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)