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 10-27-2025, 12:16 PM   #1
droodled
Junior Member
droodled began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Oct 2025
Device: Sony PRS-600
Simple process to import books without use of metadata

Dear All,

I hope this is not to stupid a question. I'm new to calibre, and am having problems importing books in it. I have been looking in the forum, and on internet, but am not able to find anything on this.

In the past I used an android app moon+ reader, which worked well for me. I renamed all books I have, numbered their titles relative to release date, and put them in a folder with the authors name. So finding something was easy, and logical with regard to hierarchie.

I now have an epaper reader, which works a bit differently, so was looking into using calibre. Whatever I do though, it always imports and orders the books according to metadata in the files, of from the internet. It does not add from filename/folder. This is really annoying, since even books from the same series aquired over the years suddenly have completely different titles, etc.. I can change it using the edit metadata option, but then I have to go over more then 900 books 1 by 1.

-Is there a way to just simply import books by title, and ignoring every piece of metadata?

I can then use tags to combine them into collections easily accessible instead of having to edit metadata 1 by 1.

I've searched the forum, but am thinking that this might not be possible, and if I would want to use calibre, to have edit all my books metadata 1 by 1 :-(

But maybe there's a simpler way that I'm currently overlooking.

Thanks for any insight.

Best regards,
droodled is offline   Reply With Quote
Old 10-27-2025, 01:09 PM   #2
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 74,462
Karma: 318076944
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
calibre/Preferences/Adding books

Uncheck "Read metadata from file contents rather than file name"

Work out what regular expression you'll need to extract book title, author name, series name and series number from your book file names, and enter that in the Regular Expression field.

If you're unfamiliar with regular expressions, give an example of your book files names, and someone will probably help with the magic incantation needed.
pdurrant is offline   Reply With Quote
Old 10-29-2025, 04:07 AM   #3
droodled
Junior Member
droodled began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Oct 2025
Device: Sony PRS-600
Hi pdurrant,

Thanks very much for this one. I'm gonna have a look into it, als the regular expressions you mention. I'd 1st like to try finding out myself before asking, as that's half the fun.

Best regards,
droodled is offline   Reply With Quote
Old 10-29-2025, 09:30 AM   #4
kacir
Wizard
kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.
 
kacir's Avatar
 
Posts: 3,468
Karma: 10684861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
Quote:
Originally Posted by droodled View Post
I'm gonna have a look into it, als the regular expressions you mention.
There is a book for that ;-)
Called Mastering Regular Expressions from O'Reilly publisher.
Nowadays an AI - I have good experiences with ChatGPT and Aistudio from Google - can craft an AI for you and even explain how it works. Just give them info that Calibre uses Python dialect of the Regular Expression Language.

When I was importing lots of books that required RIs to process the filename I used a plugin that let me quickly select the RI suitable for that particular bunch of imports. That was long before the rise of our AI overlords, but I have been using Regular Expressions for quite a long time for various things.

https://www.mobileread.com/forums/sh...d.php?t=118776
kacir is offline   Reply With Quote
Old 10-29-2025, 01:18 PM   #5
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,702
Karma: 79983758
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
You also might like to look at the GetFileName plugin (only applicable to books added after installing it).

This will store the info about the original location of a file when it is added to calibre.
PeterT is offline   Reply With Quote
Old 10-31-2025, 06:19 AM   #6
droodled
Junior Member
droodled began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Oct 2025
Device: Sony PRS-600
@kacir
-There is a book for that
Yeah, found it, but that one goes way over my head. I'm currently trying using the "adding books" option under preferences. Also tried using regex101.com, but some of the things I tried and worked, did not work properly in calibre, so stopped using that one.

@PeterT
-look at the GetFileName plugin
Thanks for the suggestion, will have a look to see if it helps.

For me the most important part is to get it in the hierarchial order I'm using now in a very simple manner like Author, Series, ID in series, and title. I don't need all the other metadata for now. I will probably start using the tag option to combine certain books, but thats for later.

I've been testing here, but already have some issue. Under "Adding Books, there's a "series_index". I was hoping to be able to use that for index in the series and thus determine its listing order. When using it though, adding e.g. "10" for it, it lists it as 10.0. Additionally, there's no column with that name under "Add you own columns" to activate as viewed column in the booklisting. Trying to add it as an own column, calibre tells me the word index in a custom column can't be used because its reserved for series.

So I thought of being a smart ass, and made another column "series_order" as integers, but that doesn't pick it up. The added column in the booklisting stays empty when adding a book.

Example bookname:
11 - Een Kuil Voor Een Ander - Baantjer, A.C. - Baantjer en de Waal.epub

(?P<series_index>.+) - (?P<title>.+) - (?P<author>.+) - (?P<series>.+)
Shows a number with floating point, this case 11.0

(?P<series_order>.+) - (?P<title>.+) - (?P<author>.+) - (?P<series>.+)
Does not pickup the number 11 to be used in the custom Series ID column
droodled is offline   Reply With Quote
Old 11-02-2025, 11:33 AM   #7
droodled
Junior Member
droodled began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Oct 2025
Device: Sony PRS-600
Dear All,

Is there someone that can help me with this one.

Been trying many things using regular expressions, but seem to not be able to grasp it to get it working.

All I want is using the book title, and extract from it 4 items.
-Series index
-Title
-Author
-Series

Tried below expressions, but can't get it to work. Only when I leave the index in the booktitle part will it of course use alphabetical order, but that's not what I'd prefer.

Example bookname:
11 - Een Kuil Voor Een Ander - Baantjer, A.C. - Baantjer en de Waal.epub

(?P<series_index>.+) - (?P<title>.+) - (?P<author>.+) - (?P<series>.+)
Shows a number with floating point, this case 11.0

(?P<series_order>.+) - (?P<title>.+) - (?P<author>.+) - (?P<series>.+)
Does not pickup the number 11 to be used in the custom Series ID column

Thanks for any hints or tips.

Best regards,
droodled is offline   Reply With Quote
Old 11-02-2025, 11:49 AM   #8
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,271
Karma: 61916422
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
You can not have a naked series_index

You MUST have a Series to have the series-index
theducks is offline   Reply With Quote
Old 11-02-2025, 02:28 PM   #9
droodled
Junior Member
droodled began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Oct 2025
Device: Sony PRS-600
Thanks for reply.

I though I had that when I tried "(?P<series_index>.+) - (?P<title>.+) - (?P<author>.+) - (?P<series>.+)". It interpreted the series-index though as a floating point number. So for the exampl book "11 - Een Kuil Voor Een Ander - Baantjer, A.C. - Baantjer en de Waal.epub", it interpreted it as 11.0. Additionally, the series_index was not available as a column in the book listing.

-Am I interpreting calibres help information completely wrong here then?

I thought series, and series_index would be 2 columns.

-Can you give an example please using my information, or maybe I need to rename the ebook titles differently?

Best regards,
droodled is offline   Reply With Quote
Old 11-04-2025, 07:10 AM   #10
kacir
Wizard
kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.
 
kacir's Avatar
 
Posts: 3,468
Karma: 10684861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
Quote:
Originally Posted by droodled View Post
@kacir
-There is a book for that
Yeah, found it, but that one goes way over my head.
That is why I was suggesting you consult an AI to help you to craft the RE.
Quote:
Originally Posted by droodled View Post
... there's a "series_index". I was hoping to be able to use that for index in the series and thus determine its listing order. When using it though, adding e.g. "10" for it, it lists it as 10.0.
Sometimes there is a prequel to series and you might want to number it 0.5, sometimes there is a short novelette between part 3 and 4 and you number it 3.5
It is a nice thing to have a series order a float not an integer.
Quote:
Originally Posted by droodled View Post
I thought series, and series_index would be 2 columns
Try it in Calibre. It will display it as "series [series index] in a default column called series. The individual series index field is for you when you write a template for filename for writing books to the disk, for example.
kacir is offline   Reply With Quote
Old 11-06-2025, 05:04 AM   #11
droodled
Junior Member
droodled began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Oct 2025
Device: Sony PRS-600
Thanks for all the help/suggestions from all. Got it working now, but also decided this is not the process I want to use to add ebooks. Am now going to look into using the commandline interface where, in combination with a macro, I think I can then can add the parameters instead of having to rename the ebooks themselves.

Don't laugh, but from the beginning I got it right. I didn't realise though, because the series index was in square brackets behind the series name itself in the same column. Thanks kacir. I didn't notice this, because the series name was larger then the columns width, and my mindset was when having 2 parameters series and series_index, that you also use/have 2 columns. At least that's what I always use when setting up databases using SQL/mySQL.

Also the suggestions from theducks makes sense now, because it did not at all when I 1st read it.
droodled is offline   Reply With Quote
Old 11-06-2025, 05:30 AM   #12
kacir
Wizard
kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.
 
kacir's Avatar
 
Posts: 3,468
Karma: 10684861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
Quote:
Originally Posted by droodled View Post
... and my mindset was when having 2 parameters series and series_index, that you also use/have 2 columns. At least that's what I always use when setting up databases using SQL/mySQL.
For people that have a database mindset it doesn't make sense. But, the vast majority of Calibre users want to have an intuitive user interface and have no idea what to do with a database and this is one of features that makes it great.
Calibre has an UI that is intuitive for a casual user, and yet, is extremely powerful when you treat it as a database (that it is, under the cover) and use advanced features such as searches, Regular Expressions and other things that make it extremely rich and powerful.
By the way, try asking some AI to help you write a shell script for adding books. If you know how to describe what to do and write a good prompt, it might be able to write a script with hundreds of lines that works on the first try.
kacir is offline   Reply With Quote
Old 11-06-2025, 06:18 AM   #13
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 15,032
Karma: 111111255
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by kacir View Post
By the way, try asking some AI to help you write a shell script for adding books. If you know how to describe what to do and write a good prompt, it might be able to write a script with hundreds of lines that works on the first try.
No, LLM/Generative AI is just broken search destroying the environment. It's designed to produce plausible, not correct, output and nearly half the time completely wrong, but without being an expert you don't know which half.

Use search and learn how to do stuff.
Quoth is offline   Reply With Quote
Old 11-06-2025, 12:36 PM   #14
kacir
Wizard
kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.
 
kacir's Avatar
 
Posts: 3,468
Karma: 10684861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
Quote:
Originally Posted by Quoth View Post
No, LLM/Generative AI is just broken search destroying the environment. It's designed to produce plausible, not correct, output and nearly half the time completely wrong, but without being an expert you don't know which half.

Use search and learn how to do stuff.
Have you actually tried to us the AI for coding?
I have and I have been astonished how well it did work.
You have to write a good prompt. I wanted to process some *.json files from a smart watch and produce graphs for heart rate for each day. I wrote a prompt asking aistudio.google.com to write a code for me and it produced a 190 line python script that processed the files and produced output pdf files with graphic representation of the data formatted exactly to my description. And the script ran (in a sandbox with a copy of the data) on a first try. The script had nice comments explaining what it does and even covered edge cases that I did not ask for in my prompt.

Yes, I have seen an AI to hallucinate, and even had an argument with it, and it even refused to admit it was wrong even when I pointed to an error with a proof. And yes, I can create a prompt that will return a wrong answer, but I am actively using AI and it is very helpful in most cases. Just do not run the script or a command on a production system without a backup. And do not run things you do not understand how they are supposed to work. Also, take everything it produces with a healthy dose of skepticism. You should do that anyway, even if you get an answer from a person.

I have friends that are professional coders and their big-name software house employer pays for private instance of Claude AI for them to use it at work.
kacir is offline   Reply With Quote
Old 11-06-2025, 03:26 PM   #15
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 48,276
Karma: 174315444
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by kacir View Post
By the way, try asking some AI to help you write a shell script for adding books. If you know how to describe what to do and write a good prompt, it might be able to write a script with hundreds of lines that works on the first try.
I would have to disagree with you. My background is in IT in an educational environment and the sheer number of students in coding classes who try to use AI to write their assignments and submit unusable code still boggles my mind. Heck, look at the number of people who have posted on MobileRead with their AI produced code asking if someone can help them to fix it.

AI can be helpful with writing code but I would not recommend anyone who does not have the experience and skills to debug the generated code to use AI as their primary code writing tool.

Last edited by DNSB; 11-06-2025 at 03:29 PM.
DNSB is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Import books from folder structure and extract metadata automatically Pquemis Library Management 1 09-25-2025 06:47 PM
One-Click Metadata Import for Books? Blaineoreski Library Management 3 07-07-2021 12:00 PM
Updating Books/Metadata on Import craig.trader Library Management 3 01-02-2017 10:04 AM
Massive import batch process bazu Calibre 2 08-07-2010 01:46 AM
Mass import of books metadata from an ASCII file: HELP NEEDED LARdT Calibre 4 07-08-2010 05:05 PM


All times are GMT -4. The time now is 03:35 AM.


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