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 Yesterday, 05:13 PM   #1
GreywolfofKansas
Junior Member
GreywolfofKansas began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Mar 2019
Device: Samsung Galaxy Tab 2
Just wondering if it can be done...

I have been using Calibre for quite a while, and thought I was fairly proficient with it, but have been banging my head against a wall trying to figure out how I can take the first letter of a series name, and parse that into a directory path..

What I am attempting to do is, say the series name is Harry Potter, I want it to figure out the series starts with H, then when I run my save option, it references that identifier into the save path.. so it would be something along the lines of:

Save to
{Series_Starts_With_This}/{series} - {author}/{series} {series_index:0>2s} - {title} - {author}

Resulting in H/Harry Potter - J. K. Rowling/Harry Potter 01 - The Sorcerers Stone - J. K. Rowling

I use several additional custom columns which I have removed for the example, in an attempt to at least clear up what I want the output template to be like... As I said, I'm not sure if it can be done, was just something I have been running around in my head. Thanks.
GreywolfofKansas is offline   Reply With Quote
Old Yesterday, 08:25 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,078
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
This also takes care of when No series

Code:
program:test(field('series'),strcat(
substr(field('series'), 0, 1),template("-series/{series:subitems(0,1)||/}{series:subitems(1,2)||/}{series_index:0>2s}-{title}_{authors}")
),template("00noseries/{author_sort[0]}_authors/{author_sort}/{title}-{authors}")
)
(Original Credit to chaley)
theducks is offline   Reply With Quote
Advert
Old Yesterday, 09:59 PM   #3
GreywolfofKansas
Junior Member
GreywolfofKansas began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Mar 2019
Device: Samsung Galaxy Tab 2
I appreciate the help, theducks. it is indeed separating the directory to the first letter of the series name, but apparently I should have left one of my fields (or more) there as reference. I separate my folders based on Genre (#booktype). After that is where the individual letter directory would fall. I am trying to put the {#booktype} before the

program:test(field('series'),strcat(substr(field(' series'), 0, 1),template("

section, but it's giving garbage strings as a result.
GreywolfofKansas is offline   Reply With Quote
Old Yesterday, 10:50 PM   #4
GreywolfofKansas
Junior Member
GreywolfofKansas began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Mar 2019
Device: Samsung Galaxy Tab 2
Though your suggestion does indeed create the directory with the first letter of the series, I'm still having an issue, and I think that was of my own fault for not giving my save template layout so you could see how mine is structured.

{#booktype}/{#tier_parent}/{#multiauthoredseries}/{series} - {author}/{series} {series_index:0>2s} - {title} - {author}

Where #booktype is where I sort by Genre....
Then #tier_parent is where I show whether a book is part of a set of series that tie into each other

Then #multiauthoredseries combines a series together that has multiple authors contributing to it.. Once those three directory structures are established, that is where I need the series title to get the first letter to create the separate alphabetical sort directory. I know, wayyy too complicated, but it's how I organize my multitude of books..

an example of my directory would be:

e:\Output\Paranormal_Fantasy Romance\S\Silver Springs Collection - Multi-Authored\

and from there you would see all the series - author lists

It was just a time saver that I was trying to accomplish automatically upon saving was all.. Thanks for your time.
GreywolfofKansas is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Just Wondering about..... jackastor Kobo Reader 1 12-18-2012 01:10 PM
I was wondering... davtay Amazon Kindle 11 01-07-2011 11:34 PM
Unutterably Silly Just Wondering...... recluse Lounge 10 07-13-2010 12:55 PM
Just Wondering... recluse Lounge 11 03-01-2010 01:34 AM


All times are GMT -4. The time now is 11:30 AM.


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