|
|
#1 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jul 2011
Device: IPad
|
Save to disk (file names)
Hello,
i tried everything ![]() but when it comes to save my files to disk, following will happen: i use: {author_sort}/{series} - {series_index} - {title} - {authors} - {isbn} because i want to have: SERIE - NO. - BOOK NAME - AUTHOR - ISBN all fine WHEN the book has a SERIE BUT IF NOT the file name is like this: - - SERIE - NO- BOOK NAME - AUTHOR - ISBN i dont want those two " - - " at the beginning. how can i remove them? thanks a lot |
|
|
|
|
|
#2 |
|
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,528
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
@dwanthny: why use 're' to add the leading zero instead of using something like 05.2f as the number format string? Are you ensuring that ".00" (or something like it) isn't added to integer series numbers?
|
|
|
|
|
|
#4 | |
|
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
I have to plead ignorant. I copied this from this forum ages ago and in the rare times I use it I seems to produce what I desire.
|
|
|
|
|
|
|
#5 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jul 2011
Device: IPad
|
hello dwanthny, thank you so much, i have no glue WHY it WORKS, but it does
![]() i changed it a little to get spaces: {author_sort}/{series:|| -} {series_index:re(^(\d)(\.|$),0\1\2)|| -} {title} - {authors} - {isbn} @chaley u mean i can shorten the template? i mean it does already what i want it to do ![]() so what would be the advantage from changing the thing with 're'? dont even know what it means
|
|
|
|
| Advert | |
|
|
|
|
#6 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,528
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
{author_sort}/{series:|| -} {series_index:|| -} {title} - {authors} - {isbn}
Code:
{author_sort}/{series:|| -} {series_index:05.2f|| -} {title} - {authors} - {isbn}
1 -> 01.00 1.4 -> 01.40 10 -> 10.00 14.43 -> 14.43 Also note that your template will put an extra space after the slash if there is no series or series index, and will have an extra trailing - if there is no ISBN. You probably want to use Code:
{author_sort}/{series:|| - }{series_index:|| - }{title} - {authors}{isbn:| - |}
Last edited by chaley; 07-30-2011 at 05:26 AM. |
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Save on disk | PhM | Calibre | 1 | 06-13-2011 01:43 PM |
| Save to Disk | beckywc | Library Management | 3 | 06-06-2011 09:54 PM |
| Save to Disk Series Help | DoctorOhh | Calibre | 7 | 04-21-2010 08:46 AM |
| Save to Disk now saving file with full path? | Mnementh | Calibre | 3 | 09-14-2009 02:24 AM |
| Any way to not have Caliber add numbers to file names when saving to disk | JGB | Calibre | 13 | 12-09-2008 05:35 PM |