Write Gallery to title-based dir

This commit is contained in:
Noe Rubinstein 2011-05-01 23:45:16 +02:00
commit 92c5ce8b66

View file

@ -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