Add -e to rtmpdump options
Adding -e to rtmpdump.
So instead of:
rtmpdump -r <url> -o <file>
we will have
rtmpdump -e -r <url> -o <file>
If <file> doesn't exist, it will be created. So the -e switch doesn't
change anything.
If <file> alredy exists, then rtmpdump will try to complete a previous
download.
That way, if videoob download <id> fails, running the command again
will complete the download without starting again from scratch.
This commit is contained in:
parent
26084e2bea
commit
cf60351830
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue