Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 12-05-2016, 08:28 PM   #1
pg111
Connoisseur
pg111 began at the beginning.
 
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
pg111 is offline   Reply With Quote
Old 12-05-2016, 09:35 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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.
theducks is offline   Reply With Quote
Advert
Old 12-09-2016, 04:59 AM   #3
pg111
Connoisseur
pg111 began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Dec 2016
Device: Kindle
Thanks for the clue

Quote:
Originally Posted by theducks View Post
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.
Hi theducks

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
pg111 is offline   Reply With Quote
Old 12-09-2016, 11:02 AM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 10:57 AM.


MobileRead.com is a privately owned, operated and funded community.