From 5a30d5568a857d9ae3e35fc93e6cedca0dc16b0a Mon Sep 17 00:00:00 2001 From: Vincent A Date: Mon, 9 Sep 2013 23:02:56 +0200 Subject: [PATCH] videoob: sanitize default download filename As full URLs are supported with quvi backend, the default download filename has to be tweaked. --- weboob/applications/videoob/videoob.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weboob/applications/videoob/videoob.py b/weboob/applications/videoob/videoob.py index e7631b36..b40436a1 100644 --- a/weboob/applications/videoob/videoob.py +++ b/weboob/applications/videoob/videoob.py @@ -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'):