]> git.phdru.name Git - m_librarian.git/blobdiff - m_librarian/download.py
Feat(db): Add book.author_list property
[m_librarian.git] / m_librarian / download.py
index 744e1a0273c35f06c5d1489b53796cba9556cf43..4cbf35b8bdd1f9850ee743db05e9765e8636ee58 100755 (executable)
@@ -37,6 +37,8 @@ def _compile_format():
                 got_percent = False
                 if c == 'a':
                     new_format = u'%(author1)s'
+                elif c == 'A':
+                    new_format = u'%(authors)s'
                 elif c == 'e':
                     new_format = u'%(extension)s'
                 elif c == 'f':
@@ -80,6 +82,7 @@ def download(book, dest_path=None, lib_path=None, a_format=None):
         raise ValueError('Bad format: "%s"' % compiled_format)
     bdict = {}
     bdict['author1'] = book.author1
+    bdict['authors'] = book.author_list
     bdict['extension'] = book.extension.name
     bdict['file'] = book.file
     genre = book.genres[0]