Quote:
Originally Posted by DoctorOhh
I'm afraid you are trying to do something impossible.
I may be wrong, but I'm relatively sure that there is no Save template for the Content server. Any app or browser will simply download the file to wherever you tell it to.
|
You are not wrong.
The content server tells any client (including CC) the name of the file containing the book and its "type" (format). It is up to the client to work out what to do with that information. Most browsers ask for a destination file name. Because CC has the book's metadata (it gets this in a separate request), it can construct a file name that makes sense for the book, specifically "title - author.format" and avoid bothering the user. It them goes through a pass to be sure that there isn't already a different book with that name on the device.
I have considered changing calibre's content server to evaluate a template and provide that result along with the book's metadata. The template would be defined in one of the preferences screens. The problem here is that CC would be the only client to use it, which would create no end of confusion for non-CC users. Confusion leads to bug reports and chatter. I considered making it a tweak, but then no one would find it and it would be wasted effort. The only thing I have thought of that avoids all of this is to enter the template in CC and pass it to the content server, but then errors in the template would be almost impossible to debug. Sigh.
FWIW: I actually go the other way and use the "use the book's ID as the filename" option. The filenames are unrelated to the book (a string of digits), but I don't care because CC knows what they are. Using this option lets Moon+ sync my reading position across all 4 of my devices, no matter how the book gets to the device (wireless device or content server). It is so nice to turn on my phone when on a bus and have it automatically go to the page I was last reading on my N7.