return
count = 0
for author in authors:
- names = filter(None, (author.surname, author.name, author.misc_name))
- fullname = u' '.join(names)
- print fullname.encode(default_encoding), \
+ print author.fullname.encode(default_encoding), \
(u"(%s: %d)" % (_('books'), author.count))\
.encode(default_encoding),
if args.verbose >= 1:
"(found %d).\n" % count)
sys.exit(1)
book = books[0]
- download(book.archive, '%s.%s' % (book.file, book.extension.name))
+ download(book, args.path)
return
count = 0
for book in books:
if args.verbose >= 1:
print " ", _("Author(s)").encode(default_encoding), ":",
for author in book.authors:
- names = filter(None,
- (author.surname, author.name, author.misc_name))
- fullname = u' '.join(names)
- print fullname.encode(default_encoding),
+ print author.fullname.encode(default_encoding),
print
print " ", _("Genre(s)").encode(default_encoding), ":",
for genre in book.genres:
parser.add_argument('-s', '--series', help='search by series')
parser.add_argument('-a', '--archive', help='search by archive (zip file)')
parser.add_argument('-f', '--file', help='search by file name')
+ parser.add_argument('-p', '--path', help='path to the library archives')
parser.add_argument('--get', action='store_true',
help='download exactly one book')
parser.add_argument('--id', help='search by database id')