From 92c5ce8b66c1e1129e063c847b749ca5a5f1ffca Mon Sep 17 00:00:00 2001 From: Noe Rubinstein Date: Sun, 1 May 2011 23:45:16 +0200 Subject: [PATCH] Write Gallery to title-based dir --- weboob/applications/galleroob/galleroob.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/weboob/applications/galleroob/galleroob.py b/weboob/applications/galleroob/galleroob.py index c5ab0af5..494cba8c 100644 --- a/weboob/applications/galleroob/galleroob.py +++ b/weboob/applications/galleroob/galleroob.py @@ -59,6 +59,12 @@ class Galleroob(ReplApplication): print 'Gallery not found: %s' % _id return 1 + backend.fillobj(gallery, ('title',)) + if dest is None: + dest = sub('/', ' ', gallery.title) + + print "Downloading to %s" % dest + os.system('mkdir "%s"' % dest) i = 0