|
|
#1 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,751
Karma: 2667650
Join Date: Jul 2012
Device: Android, Nook Simple Touch, Nook Color, ..., Glo
|
Save to Disk If or Select Statement
I thought I'd seen something similar listed here before, but I cannot find it atm....When I use the save to disk option, if there a way to use an if or select statement in the save template.
For example, I have some files that I may attribute to a collection so I would want them saved as Collection/Title but other wise I would want them saved as author/series info/title Any point in the right direction is greatly appreciated
|
|
|
|
|
|
#2 | |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,003
Karma: 30277294
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,751
Karma: 2667650
Join Date: Jul 2012
Device: Android, Nook Simple Touch, Nook Color, ..., Glo
|
Quote:
![]() FWIW I ended up using Code:
{#collection:test([Collection] {#collection}/{title}/{title},{author}/{#myseries2}{series}/{series_index:0>2s} {title}/{title})}
|
|
|
|
|
|
|
#4 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
I would use general program mode for this. Something like Code:
program:
test(
field('#collection'),
template('[Collection] {#collection}/{title}/{title}'),
template('{author}/{#myseries2}{series}/{series_index:0>2s} {title}/{title}')
)
|
|
|
|
|
|
|
#5 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,751
Karma: 2667650
Join Date: Jul 2012
Device: Android, Nook Simple Touch, Nook Color, ..., Glo
|
Quote:
|
|
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Save on disk | PhM | Calibre | 1 | 06-13-2011 12:43 PM |
| Save to Disk | beckywc | Library Management | 3 | 06-06-2011 08:54 PM |
| Save to disk add on? | Jabby | Calibre | 1 | 08-29-2010 03:45 AM |
| Save to disk question | Jabby | Calibre | 2 | 08-25-2010 12:09 PM |
| Feature request: Select what file format to save RSS into | haridasi | Calibre | 2 | 08-23-2008 10:03 AM |