![]() |
#1 |
Connoisseur
![]() Posts: 60
Karma: 10
Join Date: Dec 2016
Device: Kindle
|
How to include pub year in filenames of saved books from calibre
Hi everybody,
When I save books to disk from calibre, I would like them to be sorted by publishing year within authors' names folder as flws: {author_sort}/{pubdate}_{title}/{author_sort}_{title} could do the job, except that {pubdate} output is including the publishing month. How could I get the flwg result: Harry Kemelman\1978_Thursday the Rabbi Walked Out\Thursday the Rabbi Walked Out.azw3 where only the publishing year is mentioned. Many thanks in advance for any helpful clue. Cheers. Patrik |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
You need to use a more complex template:
see https://manual.calibre-ebook.com/template_lang.html look at the format_date(val, format_string) – format the value, which must be a date field, using the format_string, returning a string. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Connoisseur
![]() Posts: 60
Karma: 10
Join Date: Dec 2016
Device: Kindle
|
Thanks for the clue
Quote:
Thanks a lot for your input and the clue. I'll give it a try as soon as possible and let the forum know if it solved my problem. Anyway I was not aware of the https://manual.calibre-ebook.com/ web site, so thank you for letting me know it. Cheers. Patrik |
|
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
The Help button in Calibre takes you to the front door of all the forms of Calibre Help.
How to Videos FAQ Manual other Tutorials No Tests ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
filenames in the calibre library | Frenchdummy | Calibre | 6 | 08-13-2014 11:37 AM |
Polish Books does not include identifiers | Katsunami | Calibre | 3 | 10-11-2013 03:41 PM |
Need Help - Filenames to Calibre for a Series | daishan9 | Library Management | 4 | 10-03-2011 03:30 PM |
Filenames to metadata, preserving filenames. | nitrogun | Calibre | 5 | 09-13-2010 10:50 PM |
Calibre: ebooks-filenames | Pulp | Calibre | 14 | 06-05-2010 10:19 PM |