From cf60351830e2610e6fe852bce1d521d641c105b6 Mon Sep 17 00:00:00 2001 From: theo Date: Tue, 6 Nov 2012 01:02:25 +0100 Subject: [PATCH] Add -e to rtmpdump options Adding -e to rtmpdump. So instead of: rtmpdump -r -o we will have rtmpdump -e -r -o If doesn't exist, it will be created. So the -e switch doesn't change anything. If alredy exists, then rtmpdump will try to complete a previous download. That way, if videoob download fails, running the command again will complete the download without starting again from scratch. --- contrib/downloadboob/downloadboob.py | 2 +- weboob/applications/videoob/videoob.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/downloadboob/downloadboob.py b/contrib/downloadboob/downloadboob.py index ee31dda6..ec923699 100644 --- a/contrib/downloadboob/downloadboob.py +++ b/contrib/downloadboob/downloadboob.py @@ -186,7 +186,7 @@ class Downloadboob: if video.url.startswith('rtmp'): if not check_exec('rtmpdump'): return 1 - args = ('rtmpdump', '-r', video.url, '-o', dest) + args = ('rtmpdump', '-e', '-r', video.url, '-o', dest) elif video.url.startswith('mms'): if not check_exec('mimms'): return 1 diff --git a/weboob/applications/videoob/videoob.py b/weboob/applications/videoob/videoob.py index 47697da5..fc3f7f9a 100644 --- a/weboob/applications/videoob/videoob.py +++ b/weboob/applications/videoob/videoob.py @@ -111,7 +111,7 @@ class Videoob(ReplApplication): if video.url.startswith('rtmp'): if not check_exec('rtmpdump'): return 1 - args = ('rtmpdump', '-r', video.url, '-o', dest) + args = ('rtmpdump', '-e', '-r', video.url, '-o', dest) elif video.url.startswith('mms'): if not check_exec('mimms'): return 1