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 07-29-2019, 05:47 AM   #1
yamusing
Enthusiast
yamusing began at the beginning.
 
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.
yamusing is offline   Reply With Quote
Old 07-29-2019, 04:08 PM   #2
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
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.
Adoby is offline   Reply With Quote
Advert
Old 07-29-2019, 04:45 PM   #3
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,057
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:
Originally Posted by Adoby View Post
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.

This assume there is a reason the metadata is Not already embedded (that way is better and faster)
theducks is online now   Reply With Quote
Old 07-29-2019, 04:56 PM   #4
yamusing
Enthusiast
yamusing began at the beginning.
 
Posts: 47
Karma: 10
Join Date: Jul 2019
Device: none
Quote:
Originally Posted by Adoby View Post
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.
I'm doing something similar to this, but with adding books using this regular expression "(?P<author>\[.*?\]) (?P<title>.+) (?P<publisher>(.*?)\(.*?\))".

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.
yamusing is offline   Reply With Quote
Old 07-29-2019, 06:35 PM   #5
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
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.
Adoby is offline   Reply With Quote
Advert
Old 07-29-2019, 06:43 PM   #6
yamusing
Enthusiast
yamusing began at the beginning.
 
Posts: 47
Karma: 10
Join Date: Jul 2019
Device: none
Quote:
Originally Posted by Adoby View Post
Try #artist and #thology instead? No idea if it works, might be worth testing...

# is used as prefix for custom field names.
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.
yamusing is offline   Reply With Quote
Old 07-29-2019, 08:44 PM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You cannot use custom fields in regular expressions.
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 10:07 AM.


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