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 03-21-2025, 03:36 AM   #1
Saber
Junior Member
Saber began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2025
Device: Boox Page
Post I need help with Calibre device templates

I'm basically trying to have two folder structures based on whether or not a series is defined. For example:

If Series exists, I want to use this structure

Series/{series}/{series_index} - {title}

otherwise I want to use this one

Books/{author_sort}/{title}

Any idea how I can achieve this?



I almost solved the problem but this isn't quite the same structure:
{series:'ifempty($, 'Books')'}/{author_sort}/{series_index} {title}
Saber is offline   Reply With Quote
Old 03-21-2025, 11:49 AM   #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,043
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I went a bit further back when I got my EZReader that only use a file list
@Chaley whipped this one up (I later did a minor tweak to handle Hierarchical series)

Code:
# Calibre Send to Device 11/2013

program:test(field('series'),strcat(
substr(field('series'), 0, 1),template("-series/{series:subitems(0,1)||/}{series:subitems(1,2)||/}{series_index:0>5.2s}-{title}_{authors}")
),template("00noseries/{author_sort[0]}_authors/{authors}/{title}-{authors}}")
)
theducks is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
different save templates in my device maqueca Calibre 2 05-05-2019 06:49 PM
calibre-server: Book list templates sciurius Related Tools 5 02-24-2018 04:19 AM
PRS-T2 Calibre help with templates - Series/Title display sharphamster Sony Reader 6 02-25-2014 11:53 AM
Is it possible to have dataset templates in calibre ? AIberto Library Management 10 11-23-2013 04:56 PM
Send to device templates? krissasaur Devices 2 01-02-2013 06:10 PM


All times are GMT -4. The time now is 12:17 AM.


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