videoob: sanitize default download filename
As full URLs are supported with quvi backend, the default download filename has to be tweaked.
This commit is contained in:
parent
a0c25a0b46
commit
5a30d5568a
1 changed files with 2 additions and 1 deletions
|
|
@ -22,6 +22,7 @@
|
|||
import subprocess
|
||||
import sys
|
||||
import os
|
||||
import re
|
||||
|
||||
from weboob.capabilities.video import ICapVideo, BaseVideo
|
||||
from weboob.capabilities.base import empty
|
||||
|
|
@ -109,7 +110,7 @@ class Videoob(ReplApplication):
|
|||
ext = video.ext
|
||||
if not ext:
|
||||
ext = 'avi'
|
||||
dest = '%s.%s' % (video.id, ext)
|
||||
dest = '%s.%s' % (re.sub('[?:/]', '-', video.id), ext)
|
||||
|
||||
if video.url.startswith('rtmp'):
|
||||
if not check_exec('rtmpdump'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue