Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 03-27-2023, 06:39 AM   #1
CalRCH
Junior Member
CalRCH began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2019
Device: None
Adding books: metadata from filenames

I have a bundle of books which I wish to add to my library. I understand the Add function can be configured by suitable regular expressions, but my attempts do not seem to work.

My books are largely stored in directories/folders ...

author/title.xyz
author/author - title.xyz
author/title - author.xyx
author/title by author.xyz
author/series/title.xyz

and so on.

The Add configuration section allows entry of a set of regular expressions.

Am I correct in assuming they are tried in succession? What happens if none are satisfied?

How do I delete the expressions which are unsatisfactory?

Can anyone refer me to a suitable set of such expressions?

I've got some 6000 files to take on, so you can appreciate I want to automate the process.
( Will I have to write some Perl to get everything into shape? )
CalRCH is offline   Reply With Quote
Old 03-27-2023, 07:49 AM   #2
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: 30,899
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Calibre if configured (add books) to use file name, does not use anything outside the current folder for metadata.

Add books CAN scan the source sub folders for content (books), but the rule on file name remains
theducks is offline   Reply With Quote
Advert
Old 03-27-2023, 05:35 PM   #3
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,621
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by CalRCH View Post
I have a bundle of books which I wish to add to my library. I understand the Add function can be configured by suitable regular expressions, but my attempts do not seem to work.

My books are largely stored in directories/folders ...

author/title.xyz
author/author - title.xyz
author/title - author.xyx
author/title by author.xyz
author/series/title.xyz

and so on.

The Add configuration section allows entry of a set of regular expressions.

Am I correct in assuming they are tried in succession? What happens if none are satisfied?
Incorrect, as is written on the tin:

Quote:
Set a regular expression pattern to use when trying to guess e-book metadata from filenames.
In general, calibre instructions and tooltips are pedantic in their precision - as they should be.

The drop down list is "filename_pattern_history" in gui,json you can remove items from here, the current pattern is "filename_pattern": in global.py.json, I'd leave that one alone.

If you edit files in calibre's configuration folder, do it when calibre is NOT running, and take a copy of the file before you change it.

You can discover the location of calibre's configuration folder by clicking the relevant button in Preferences_>Miscellaneous.

BR
BetterRed is offline   Reply With Quote
Old 03-28-2023, 07:26 AM   #4
CalRCH
Junior Member
CalRCH began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2019
Device: None
Thank you for locating the configuration file for me.
CalRCH is offline   Reply With Quote
Old 03-28-2023, 07:26 AM   #5
CalRCH
Junior Member
CalRCH began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2019
Device: None
Looks as if I'll have to use Perl.
CalRCH is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Editing Metadata of New Books While Adding Them Kevin1a Library Management 7 06-16-2016 05:40 AM
Metadata not included when adding books everbos Library Management 5 05-10-2016 02:42 PM
Metadata when adding books dc696969 Library Management 0 03-26-2013 04:48 AM
Adding books: getting metadata from path? lbolton Library Management 2 08-05-2012 09:50 PM
Filenames to metadata, preserving filenames. nitrogun Calibre 5 09-13-2010 10:50 PM


All times are GMT -4. The time now is 11:29 AM.


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