Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-17-2025, 10:07 AM   #1
PaigheTurn
Enthusiast
PaigheTurn began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Jan 2024
Device: Kindle 3 Wifi
Is it possible to configure for 2 separate folder groups? (Author and Series)

First, I would like to give credit to the person who commented the configuration I am using from reddit: u/SpartanHeavy

This is the configuration for "Send to Device" from Calibre:
Code:
{series:||/}{series_index:|| - }{title}-{authors}
This is the original picture he commented:
https://www.reddit.com/media?url=htt...29f91df360bc74

Explanation:
This configuration creates a Series folder if a book has existing series metadata. The problem is that all other books are then sent to the root folder without organization.

Is it possible to create an if-else condition for configuring Calibre? I want it so that if a series does not exist, an "Author" folder will be created instead. I tried to create an if-else condition with this code but it didnt work:
Code:
{#series:|{series}/|}{authors}/{title} - {authors}
All series got pasted into their author folders.

As a last resort, I know that I can make Series a subfolder of Author

EDIT:
as per @chaley, this is the code that works:
Code:
{series:'ifempty($, $authors)'}/{series_index:|| - }{title} - {authors}

Last edited by PaigheTurn; Yesterday at 08:07 AM. Reason: Problem Solved
PaigheTurn is offline   Reply With Quote
Old 05-17-2025, 01:48 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,206
Karma: 145458580
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
You have to attach the image as we cannot see it. Please edit your post and delete the image link and the tags and attach the image so we can actually see it in the correct context. Most sites do not allow an image to be linked. And even if so, there's a good chance that eventually the image could be deleted and your link will no longer work.
JSWolf is offline   Reply With Quote
Advert
Old 05-17-2025, 01:57 PM   #3
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,339
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Code:
{series:'ifempty($, $authors)'}/{series_index:|| - }{title} - {authors}
chaley is offline   Reply With Quote
Old 05-17-2025, 08:35 PM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,937
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
You have to attach the image as we cannot see it. Please edit your post and delete the image link and the tags and attach the image so we can actually see it in the correct context.
Odd, I had no real issues opening the link to see the image. An annoyance since it was wrapped in IMG tags not URL but life is tough that way.

https://www.reddit.com/media?url=htt...29f91df360bc74
Attached Thumbnails
Click image for larger version

Name:	koreader-file-explorer-sorting-v0.jpg
Views:	30
Size:	41.9 KB
ID:	215724  
DNSB is offline   Reply With Quote
Old 05-17-2025, 11:09 PM   #5
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: 30,913
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
My suggestion is to ditch the {id} part.
The reason is that only matches the current Calibre Library.
Rebuilding or linking to a different Library that has that book will not Match.

(Been there. Wondered why I was getting duplicates on my device. )
theducks is online now   Reply With Quote
Advert
Old Yesterday, 07:57 AM   #6
PaigheTurn
Enthusiast
PaigheTurn began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Jan 2024
Device: Kindle 3 Wifi
Quote:
Originally Posted by JSWolf View Post
You have to attach the image as we cannot see it. Please edit your post and delete the image link and the tags and attach the image so we can actually see it in the correct context. Most sites do not allow an image to be linked. And even if so, there's a good chance that eventually the image could be deleted and your link will no longer work.
Hello I apologize for the mistake. Next time Ill use a correct image url or attach the url directly as a clickable link. Thank you also @DNSB for showing how to make the image work
PaigheTurn is offline   Reply With Quote
Old Yesterday, 07:58 AM   #7
PaigheTurn
Enthusiast
PaigheTurn began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Jan 2024
Device: Kindle 3 Wifi
Quote:
Originally Posted by chaley View Post
Code:
{series:'ifempty($, $authors)'}/{series_index:|| - }{title} - {authors}
Thank you very much! This is the if-else syntax that finally worked.
PaigheTurn is offline   Reply With Quote
Old Yesterday, 08:05 AM   #8
PaigheTurn
Enthusiast
PaigheTurn began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Jan 2024
Device: Kindle 3 Wifi
Quote:
Originally Posted by theducks View Post
My suggestion is to ditch the {id} part.
The reason is that only matches the current Calibre Library.
Rebuilding or linking to a different Library that has that book will not Match.

(Been there. Wondered why I was getting duplicates on my device. )
Thanks for the advice. I also removed the ID while trying to figure out the if-else code. I found it unnecessary and unpleasing to the eye
PaigheTurn is offline   Reply With Quote
Old Yesterday, 01:54 PM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,206
Karma: 145458580
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
Odd, I had no real issues opening the link to see the image. An annoyance since it was wrapped in IMG tags not URL but life is tough that way.

https://www.reddit.com/media?url=htt...29f91df360bc74
But the message was for the OP to attach the image in case it's necessary to the gist of the post. I've seen some old threads where the images are no longer available and the post is no longer useful.
JSWolf is offline   Reply With Quote
Old Today, 05:56 AM   #10
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,937
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Perhaps you could emulate what several other people have done. Do not tell the poster what to do without showing an example of what can be done. In this case, one solution is to wrap the image link in URL tags which is not preferred since as you mentioned, this often leads to a 404 error or running into sites that no longer allow 3rd party access. The preferred option is to attach the image using the paperclip or Manage Attachments tool from Advanced mode.

Last edited by DNSB; Today at 05:59 AM.
DNSB is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to configure for 2 separate folder groups? (Author and Series) PaigheTurn KOReader 0 05-17-2025 10:04 AM
Series Grouped by Letter of the Alphabet in Sub Groups Bermudagirl Library Management 2 01-11-2023 11:30 AM
Series Index displayed as separate column from Series Vortex Library Management 3 03-15-2015 08:39 PM
Separate author sort settings for separate libraries? crackshot91 Library Management 1 09-09-2012 11:17 PM
Series info into Tags field for Stanza's Groups RoninTech Calibre 4 07-06-2010 09:23 AM


All times are GMT -4. The time now is 11:02 PM.


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