View Single Post
Old 10-03-2016, 03:01 PM   #14
kacir
Wizard
kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.
 
kacir's Avatar
 
Posts: 3,463
Karma: 10684861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
Quote:
Originally Posted by Tech Guy View Post
I started the content server from the preferences, and used the "test server" button to experiment within Firefox.

I found that when I click on the "Get" button in Firefox, I can see the name of the file that will be downloaded. They mostly have a leading underscore, mostly being an interesting word here.
I have tried to reproduce the problem with the newest Calibre installed on Mint Linux Quiana, KDE version.
Everything works the way it is supposed to.

Are you sure you have no Metadata Plugboard set up for device called "Content server"?

If I put '/' string here it gets included in the downloaded file name (or replaced with an undescore in case of Firefox)

It is possible to put together a template language example that would insert '/' into the beginning of the "Title" field for books with non-existing series using template language as described here:
https://manual.calibre-ebook.com/template_lang.html

Code:
Go to Options, Metadata Plugboard
Add a new plugboard:
Format: any format
Device: content_server
Source template: {series:ifempty(/)|| - }{series_index:0>3s|| - }{title} - {authors}
Destination field: title

If your plugboard is empty and Calibre still behaves the way you describe, try to create a new one plugboard as described above, set
Source template: {title}
and observe results.


The Calibre is AMAZING. I keep discovering unbelievable features. I never had the need to have a closer look at the advanced features of the Template language and the plugboards until today. And I am blown away. *Again*.
Thank you Kovid.
kacir is offline   Reply With Quote