09-28-2016, 11:39 AM | #1 |
Connoisseur
Posts: 55
Karma: 603120
Join Date: Aug 2012
Location: Monte Los Angeles (Califoggia)
Device: Android Tablet, Kindle Paperwhite
|
2 folders as devices, send to device formatting per file
Hi there...
I know the title of this thread is not the best but I can't explain the whole thing in English language in few words.. So, I have an SD card, which I often attach to my PC to copy new ebooks that I can read later on tablet, mostly epub, pdf, cbr and cbz. I have two separate folders for ebboks into my SD card, one for epub and pdf (fiction, nonfiction, essay, poetry etc) and one for comics (CBR and CBZ, but sometimes PDF too). I use the following formatting rules when saving comics (CBR, CBZ or PDF) ebooks Code:
{series}/[#{series_index:>3s}]/{title} - {authors} Code:
{author_sort[0]}/{author_sort} - {title} [{pubdate}] So I would like to ask if there is some kind of deeper regex I could use here to solve this issue, maybe changing rules per file extension? I seem to recall that older version of Calibre had such an option, but it was a year ago or more, wasn't it? Oh, last but least, is there a way to shorten the {pubdate} tag to years only, something like YYYY (2016, for example)? Thanks a lot for paying attention, see you! Last edited by brainvision; 09-28-2016 at 11:40 AM. Reason: typo |
09-28-2016, 01:01 PM | #2 |
Well trained by Cats
Posts: 29,779
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
chaley did a similar for me back in 2010
Code:
program: test( field('series'), strcat( substr(field('series'), 0, 1), template("-series/{series}/{series_index:0>2s}-{title}_{id}_{authors}") ), template("00noseries/{author_sort[0]}_authors/{authors}/{title}_{id}_{title}-{authors}") ) |
Advert | |
|
09-28-2016, 01:07 PM | #3 | |
Connoisseur
Posts: 55
Karma: 603120
Join Date: Aug 2012
Location: Monte Los Angeles (Califoggia)
Device: Android Tablet, Kindle Paperwhite
|
Quote:
EDIT: for comics I have new rules since a week now, I copied the old one.. now it is Code:
{series}/{series_index:| [|] }{title} - {authors} Last edited by brainvision; 09-28-2016 at 01:10 PM. |
|
09-28-2016, 01:22 PM | #4 |
Well trained by Cats
Posts: 29,779
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I only broke up between series and no series (so you did need to know that ) for my Astak that only use the file system for the book shelf.
That template 'trick' is not needed since no series is a different branch Note: Series does not have {Author} in front of titles because I read a lot of 'Universe' type books where the author names vary widely within the series |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Send to Device /folder for Nexus 7 | dkperez | Library Management | 2 | 04-12-2013 06:11 AM |
Send to device in special folder structure | Arco Witter | Calibre | 18 | 12-16-2011 08:31 AM |
Send to device, sorted by format folder | turb0sun | Calibre | 3 | 06-07-2011 05:44 PM |
Change Send to Device Folder?? | bucketheadmn | Devices | 9 | 03-27-2011 04:22 PM |
Send to device folder structure? | Slite | Calibre | 2 | 01-09-2010 05:20 AM |