07-12-2017, 05:38 AM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jul 2017
Location: South Africa
Device: Tablet
|
Calibre book adding: Regular expression request...
Hi There
I have been through all the posts regarding renaming my books and i am still at a loss I have 100's of ebooks which i have been manually editing and it becomes a huge pain... This is how i would love my books to be when i load them into Calibre.. Elizabeth Briggs - Chasing the Dream 01 - More Than Music The original file looks like this Elizabeth Briggs - [Chasing the Dream 01] - More Than Music I like my books to have the Series name in the title... so like this below Title = Chasing the Dream 01 - More Than Music Authors = Elizabeth Briggs Series = No Match Series Index = No Match ISBN = Title Sorry to be a pain... And is this at all possible... ever so much .... |
07-12-2017, 07:23 AM | #2 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Can I suggest that you don't do this? If you want to display the books in calibre like this, add an custom column that builds the "series title" from the other columns. You can then change the displayed columns to show this title, rather then the standard title.
The advantage of doing it this way is that the basic metadata is consistent with the metadata sources and you can use the metadata source plugins to maintain the data without any extra editing. And if you change your mind about how you want to show the title, you can. Also, it is common to want the title like this on ereaders. Most don't handle the series info, so a metadata plugboard is used to change the title in the copy sent to the device. If you want to do what I suggest, then you can create a "Column built from other columns" with the template: Code:
{series}{series_index:0>2s| - | - }{title} As to regex to create when adding the book, I can't think of how to do it. I suspect the simplest way to it is to set the title and series from the file name and then run a search and replace across new books in a batch. |
Advert | |
|
07-12-2017, 08:11 AM | #3 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Jul 2017
Location: South Africa
Device: Tablet
|
Quote:
Last edited by Tweetygirl10111; 07-12-2017 at 08:12 AM. Reason: makes better sense |
|
07-13-2017, 07:37 AM | #4 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Jul 2017
Location: South Africa
Device: Tablet
|
Quote:
|
|
07-13-2017, 09:19 AM | #5 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Glad it is working how you want.
Quote:
Code:
{author_sort}/{title} - {authors} Code:
{author_sort}/{#series_title} - {authors} |
|
Advert | |
|
07-13-2017, 10:23 AM | #6 | |
Wizard
Posts: 3,450
Karma: 10484861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
|
Quote:
This is not what you asked for ;-) but shows an example of advanced syntax of template language. Code:
{author_sort:.1}/{authors}/{series:|# |}/{series_index:0>3s|| - }{title} - {authors}/{series_index:0>3s|| - }{title} - {authors} Code:
{authors} - {series:|| }{series_index:0>3s|| - }{title} Please notice this {series_index:0>3s|| - } series_index - is series index :0>3s - the number is three characters long, so instead of part 2 it will write 002 - so the series can be alphabetically sorted when there is more than 10 books in series. Otherwise it would be like this: 1,10,11,2,3,...,9 || - - if you did not use this, but instead {authors} - {series} {series_index} - {title} then when there is no series you would have filename such as: 'Author Name - - Title'. the || denominate prefix and suffix that is given to the series or series index IF they exist. For the angle brackets version it would be something like Code:
{authors} - {series:|[| }{series_index:0>3s||] - }{title} Last edited by kacir; 07-13-2017 at 10:27 AM. |
|
07-13-2017, 05:38 PM | #7 |
Member
Posts: 19
Karma: 10
Join Date: Jul 2017
Location: Minnesota
Device: Kindle Voyage & Kindle Fire
|
Can anyone make a how to video for this?
Something incredibly simple? |
07-13-2017, 05:44 PM | #8 | |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
07-13-2017, 05:58 PM | #9 |
Member
Posts: 19
Karma: 10
Join Date: Jul 2017
Location: Minnesota
Device: Kindle Voyage & Kindle Fire
|
Ok created column... now how do I run my whole library through it?
Last edited by niijii; 07-13-2017 at 09:42 PM. Reason: wish to delete excess post |
07-13-2017, 06:06 PM | #10 |
Member
Posts: 19
Karma: 10
Join Date: Jul 2017
Location: Minnesota
Device: Kindle Voyage & Kindle Fire
|
How do I change the "- 01 -" part to a simple [1] bracket part?
|
07-13-2017, 06:08 PM | #11 |
Member
Posts: 19
Karma: 10
Join Date: Jul 2017
Location: Minnesota
Device: Kindle Voyage & Kindle Fire
|
and thank you! You saved me a ton of time... just want to change that part to brackets
Last edited by niijii; 07-13-2017 at 09:42 PM. Reason: wish to delete excess post |
07-13-2017, 06:10 PM | #12 |
Member
Posts: 19
Karma: 10
Join Date: Jul 2017
Location: Minnesota
Device: Kindle Voyage & Kindle Fire
|
I really love you! I can't believe it! Thank you!
Last edited by niijii; 07-13-2017 at 09:15 PM. Reason: delete |
07-13-2017, 07:48 PM | #13 |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
07-13-2017, 09:14 PM | #14 |
Member
Posts: 19
Karma: 10
Join Date: Jul 2017
Location: Minnesota
Device: Kindle Voyage & Kindle Fire
|
{series}{series_index:0>2s| [|] }{title} Guessed! And it worked! Thank you.
Last edited by niijii; 07-13-2017 at 10:03 PM. Reason: trying to find a light at the end of the tunnel |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre book adding: Regular expression request... | Spiffy | Calibre | 34 | 01-19-2016 01:03 PM |
regular expression to convert character when adding book | comox | Library Management | 4 | 08-23-2014 01:15 PM |
Regular Expression adding book published date | jbcmars | Calibre | 2 | 01-08-2011 09:23 PM |
Adding Books, regular expression | smarties86 | Calibre | 4 | 12-19-2010 08:18 AM |
Regular Expression on adding books. | Lokro | Calibre | 4 | 11-06-2010 11:05 AM |