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:
Vincent A 2013-09-09 23:02:56 +02:00 committed by Florent
commit 5a30d5568a

View file

@ -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'):