X-Git-Url: https://git.phdru.name/?p=m_librarian.git;a=blobdiff_plain;f=m_librarian%2Fdownload.py;h=744e1a0273c35f06c5d1489b53796cba9556cf43;hp=f1a41c76d40243908f8f975557696d246f902b1a;hb=12e046208dda7a46efc4b02dde9a1cb507a940ba;hpb=5df964d8c2004c35349a40d74def41c60a82006a diff --git a/m_librarian/download.py b/m_librarian/download.py index f1a41c7..744e1a0 100755 --- a/m_librarian/download.py +++ b/m_librarian/download.py @@ -36,7 +36,7 @@ def _compile_format(): if got_percent: got_percent = False if c == 'a': - new_format = u'%(author)s' + new_format = u'%(author1)s' elif c == 'e': new_format = u'%(extension)s' elif c == 'f': @@ -79,7 +79,7 @@ def download(book, dest_path=None, lib_path=None, a_format=None): if compiled_format[-1] in ('\0', '\\', '/'): raise ValueError('Bad format: "%s"' % compiled_format) bdict = {} - bdict['author'] = book.authors[0].fullname + bdict['author1'] = book.author1 bdict['extension'] = book.extension.name bdict['file'] = book.file genre = book.genres[0]