04-18-2010, 12:03 AM | #1 |
Wizard
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
save to disk template
Is there any way to make a conditional template for the save to disk feature?
I want to put series and series number in file name with dashes if there is a series and no dashes if there is no series. Thanks Helen |
04-18-2010, 12:37 AM | #2 |
creator of calibre
Posts: 44,565
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
All that can be done with templates is described here:
http://docs.python.org/library/strin...#formatstrings |
Advert | |
|
04-18-2010, 01:00 PM | #3 |
Wizard
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
Thanks I wil perservere
Agghhh! Pain Headache New version Rocks BTW |
04-29-2010, 07:03 PM | #4 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Dec 2008
Device: iPad Air, Kobo Aura H2O
|
Did you ever figure out how to do this? I have a similar issue, but nothing I've tried works.
|
05-28-2010, 09:18 AM | #5 |
Wizard
Posts: 1,434
Karma: 1525776
Join Date: Aug 2009
Location: TAS, Australia
Device: Astak Pocket Pro (Black), 2 x Kindle WiFi (Graphite), iPod Touch 4G
|
Going to resurrect this thread rather than create a new one (as I think my question is similar to the OPs).
With the Save to Disk, my current template is {author_sort[0]}_author/{authors}/{series}/{series_index:0>2s} {title} and it works well. Is it possible to add a publisher tag at the start, but only for a specified publisher name? eg: Able to specify Feedbooks as the publisher so when I export all my books to the device, it will appear; Feedbooks/A_Author/Author/Series/ And all other books; A_Author/Author/Series/ |
Advert | |
|
05-28-2010, 11:21 AM | #6 | |
Well trained by Cats
Posts: 30,453
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
AND Filter (luggage tag) on Publisher, "Feedbooks" so all that you get to send in bulk are the same pub. Feedbooks/{author_sort[0]}_author/{authors}/{series} Note:no braces. a literal I know of no other way to assign a specific "template to use", or "storage to use" to a title I am always ing |
|
05-28-2010, 12:53 PM | #7 |
Junior Member
Posts: 2
Karma: 10
Join Date: Feb 2010
Location: Taiwan
Device: GreenBook
|
hi, i'm trying to create a recipe for http://www.taipeitimes.com all i want is to know how to add /print to the end of the article url to access the print version of the article url. it says here http://calibre-ebook.com/user_manual...n-of-bbc-co-uk how to replace the beginning of a url but not how to add something to the end... can someone please help?
thanks russell |
05-28-2010, 01:00 PM | #8 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
05-28-2010, 01:06 PM | #9 |
Junior Member
Posts: 2
Karma: 10
Join Date: Feb 2010
Location: Taiwan
Device: GreenBook
|
|
05-29-2010, 07:02 AM | #10 | |
Wizard
Posts: 1,434
Karma: 1525776
Join Date: Aug 2009
Location: TAS, Australia
Device: Astak Pocket Pro (Black), 2 x Kindle WiFi (Graphite), iPod Touch 4G
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre will not save to disk | mrbillb | Calibre | 0 | 09-10-2010 07:56 PM |
Using Custom Metadata in Save Template | EJvdH | Calibre | 1 | 07-02-2010 07:06 AM |
Save template for title metadata? | Bob Butler | Calibre | 10 | 03-15-2010 02:05 PM |
Optional characters in Save Template for Adding Books | Starson17 | Calibre | 1 | 02-28-2010 01:52 PM |
Save to disk and Tags | tselling | Calibre | 2 | 08-30-2009 10:05 PM |