11-25-2012, 09:56 AM | #1 |
Junior Member
Posts: 7
Karma: 10
Join Date: Nov 2012
Device: iPad 4th
|
Custom folder structure on 'save to disk'
Hi
I'm using Calibre 0.9.7 since two or three days. Calibre use the authors and the book title for the folder structure. Is there a way to tell Calibre to use a custom metadata field as structure? I've added #genre and I would prefer this. greez GarfieldKlon Last edited by GarfieldKlon; 11-25-2012 at 10:43 AM. |
11-25-2012, 10:02 AM | #2 |
Well trained by Cats
Posts: 30,365
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
11-25-2012, 10:15 AM | #3 |
Junior Member
Posts: 7
Karma: 10
Join Date: Nov 2012
Device: iPad 4th
|
I've already read this and I'm configuring the 'save to disk'. I set genre like this --> 'IT.Programming.Java'. If I export it with {#genre}/{title}/{title} I'm ending up with a folder calld 'IT.Programming.Java' ...
But I want a single folder for each genre, a folder 'IT', and in there a folder 'Programming' and so on. Isn't this possible? |
11-25-2012, 10:21 AM | #4 | |
Well trained by Cats
Posts: 30,365
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
You will really farkle your library if you write into it. |
|
11-25-2012, 10:28 AM | #5 |
Junior Member
Posts: 7
Karma: 10
Join Date: Nov 2012
Device: iPad 4th
|
I don't want to write into the calibre folder structure, I just want to export my books somewhere else with my own defined logic.
I think this could be the solution: sublist(val, start_index, end_index, separator) edit: Ok here's something ugly, but it works: {#genre:subitems(0,1)}/{#genre:subitems(1,2)}/{#genre:subitems(2,3)}/{#genre:subitems(3,4)}/{#genre:subitems(4,5)}/{title}/{title} I don't know how to dynamically create the folder structure. Last edited by GarfieldKlon; 11-25-2012 at 10:41 AM. |
11-25-2012, 11:04 AM | #6 | |
Well trained by Cats
Posts: 30,365
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
ALL Folders (paths) will be created as needed |
|
11-25-2012, 11:08 AM | #7 |
Junior Member
Posts: 7
Karma: 10
Join Date: Nov 2012
Device: iPad 4th
|
Exactly, what's so scary about that? Can I do this more generically?
|
11-25-2012, 11:52 AM | #8 |
Well trained by Cats
Posts: 30,365
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
11-25-2012, 12:06 PM | #9 |
Junior Member
Posts: 7
Karma: 10
Join Date: Nov 2012
Device: iPad 4th
|
Long path names aren't the same as a deep directory structure. The directories itselves are each shorter than 20 characters.
|
11-25-2012, 04:38 PM | #10 | |
Grand Sorcerer
Posts: 11,936
Karma: 7208979
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
{#genre:re(\.,/)} |
|
11-27-2012, 04:09 PM | #11 |
Junior Member
Posts: 7
Karma: 10
Join Date: Nov 2012
Device: iPad 4th
|
@Chaley
THX! It works great. Could you please explain it to me what re does? Or give me a link, I haven't found it in the help, just examples with no explanation. |
11-27-2012, 05:07 PM | #12 | |
Grand Sorcerer
Posts: 11,936
Karma: 7208979
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
A good regular expression tutorial is here: All about using regular expressions in calibre. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
2 authors and the folder structure | brainvision | Library Management | 6 | 08-10-2012 08:42 AM |
Folder Structure on Device | laos369 | Sony Reader Dev Corner | 6 | 05-25-2012 11:23 PM |
Folder structure an the reader | thomasmorus | Calibre | 2 | 05-23-2010 07:51 PM |
Folder structure doubt | Oletros | iRex | 3 | 01-01-2009 07:00 AM |
SD Folder structure | ctitanic | Amazon Kindle | 1 | 12-30-2007 12:48 PM |