Write Gallery to title-based dir
This commit is contained in:
parent
c74362edb7
commit
92c5ce8b66
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue