View Single Post
Old 08-08-2015, 08:35 AM   #688
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,460
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by jbaumann View Post
Hi,

I would like to put PDF documents into a folder named PDF and all other books into a folder Books (not very inventive, but ok...).

How do I get the actual format of the book that is copied to the reader? I tried, in a first step, to use {formats}, but that obviously contained all formats of the book in the library and not only the format that is sent to the reader.

My current filename template is:

{formats}/{author_sort} - {series}{series_index:0>2s| | - }{title}

Thanks a lot for any pointers.

Cheers, Joe
You can't get there using templates. The template system knows about information in the book, not why the template is being evaluated. For example it does not know what format is being written, or even if a format is being written.

You can do it if the calibre device driver for your device supports specifying a destination per extension (format). The two drivers I know of with that support are the MTP and wireless device drivers.
chaley is offline   Reply With Quote