![]() |
#1 |
Enthusiast
![]() Posts: 47
Karma: 10
Join Date: Jul 2019
Device: none
|
Automatically add in data into columns when adding books
How do I make it so calibre adds in data in certain columns using the title of the imported books? For example I have a 2 books with these titles
Title book 1: "[leaf409] No Invader (Blue Sky 2011-12) (grb90) [Spanish]" Title book 2: "[Heari pan] Luminous paladin (King)" I want it so the "[leaf409]" and "[Heari pan] automatically gets put into the "artist" custom column and the "(Blue Sky 2011-12)" and "(King)" into a custom column called "Thology". Also after I do this I would like an option to make all the highlighted books to have everything in brackets and square brackets to be removed such as book 1 is named "No Invader" and book 2 as "Luminous paladin" Help would be appriciated, I have lots of book with this title format and have to manually go through them which takes a lot of time. |
![]() |
![]() |
![]() |
#2 |
Handy Elephant
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
|
You are in luck! Calibre is the perfect tool for what you need.
1. Import with the full filename as the title. 2. Then use a couple of search and replace with regular expressions to populate other fields from the title. Authors, series and custom fields so on. 3. Do a final search and replace to remove everything from the title, except the title. This is the normal process I use when adding books with descriptive AND uniform filenames to calibre. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() This assume there is a reason the metadata is Not already embedded (that way is better and faster) |
|
![]() |
![]() |
![]() |
#4 | |
Enthusiast
![]() Posts: 47
Karma: 10
Join Date: Jul 2019
Device: none
|
Quote:
using the bulk search and replace option to move everything from the "author" column to the "artist" column, and then the "publisher" to the "Thology" column. When its done I removed the square and round brackets in both columns using character match, then remove all the metadata from the "author" and "publisher" column. I wouldn't have to go through all this if the regular expession accepted custom columns, the "(?P<author>\[.*?\]) (?P<title>.+) (?P<publisher>(.*?)\(.*?\))" works to automatically add in metadata but the "(?P<artist>\[.*?\]) (?P<title>.+) (?P<thology>(.*?)\(.*?\))" returns an error. |
|
![]() |
![]() |
![]() |
#5 |
Handy Elephant
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
|
Try #artist and #thology instead? No idea if it works, might be worth testing...
# is used as prefix for custom field names. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Enthusiast
![]() Posts: 47
Karma: 10
Join Date: Jul 2019
Device: none
|
I tried using "#artist" and "#thology" but it returns an error and I can't use it. I tried just using "artist" and "thology" but it does nothing to add metadata in that field.
|
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You cannot use custom fields in regular expressions.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre not automatically adding books | rhtq35h | Library Management | 42 | 11-01-2018 06:00 AM |
Adding Columns to Polish Books | copaw | Library Management | 1 | 06-05-2016 02:57 AM |
Automatically adding books from a folder | crissman | Library Management | 2 | 01-24-2015 05:36 PM |
Custom columns when adding books | BookJunkieLI | Library Management | 9 | 06-10-2013 08:30 AM |
Automatically Adding books | Canonshooter | Calibre | 5 | 06-29-2012 09:22 AM |