[weboob] [PATCH 1/1] Keep the original name when downloading a video

theo theocrite at theocrite.org
Tue Nov 8 22:52:33 CET 2011


Signed-off-by: theo <theocrite at theocrite.org>
---
 weboob/applications/videoob/videoob.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/weboob/applications/videoob/videoob.py b/weboob/applications/videoob/videoob.py
index 63318a6..e32756e 100644
--- a/weboob/applications/videoob/videoob.py
+++ b/weboob/applications/videoob/videoob.py
@@ -113,7 +113,7 @@ class Videoob(ReplApplication):
             ext = video.ext
             if not ext:
                 ext = 'avi'
-            dest = '%s.%s' % (video.id, ext)
+            dest = '%s' % (video.url.split('/')[-1])
 
         if video.url.find('rtmp') == 0:
             if not check_exec('rtmpdump'):
-- 
1.7.7.1



More information about the weboob mailing list