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 01-20-2025, 05:24 AM   #1
skil-phil
Connoisseur
skil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animals
 
skil-phil's Avatar
 
Posts: 84
Karma: 6698
Join Date: Sep 2022
Location: South Africa
Device: kindle pw10
Adding books to the library

Hi,
I have been adding books to the library using the following reg exp to extract metadata from the file name.

(?P<author>[^_]+)-(?P<series>[^_]+)-(?P<series_index>[^_]+)-(?P<title>[^_]+)-(?P<published>[^_]+)-(?P<tags>[^_]+)

All works fine except the <tags>. Is it possible to get this to work?

Thanks
Phil
skil-phil is offline   Reply With Quote
Old 01-22-2025, 06:19 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,601
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by skil-phil View Post
Hi,
I have been adding books to the library using the following reg exp to extract metadata from the file name.

(?P<author>[^_]+)-(?P<series>[^_]+)-(?P<series_index>[^_]+)-(?P<title>[^_]+)-(?P<published>[^_]+)-(?P<tags>[^_]+)

All works fine except the <tags>. Is it possible to get this to work?

Thanks
Phil
You'll need to post some sample filenames so we can see what maybe going on.
JSWolf is offline   Reply With Quote
Old 01-23-2025, 01:05 AM   #3
skil-phil
Connoisseur
skil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animals
 
skil-phil's Avatar
 
Posts: 84
Karma: 6698
Join Date: Sep 2022
Location: South Africa
Device: kindle pw10
This example works fine except for the tag Thriller.

A.J. Carter-Novel-08-The Private Tutor-2024-Thriller.epub
Thanks
skil-phil is offline   Reply With Quote
Old 06-20-2025, 05:16 AM   #4
Popupkiller
Junior Member
Popupkiller began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2025
Device: Calibre
Quote:
Originally Posted by skil-phil View Post
This example works fine except for the tag Thriller.

A.J. Carter-Novel-08-The Private Tutor-2024-Thriller.epub
Thanks
Did you ever figure this out?
I am also trying to auto populate tags from filenames, but it's not working.
Popupkiller is offline   Reply With Quote
Old 06-21-2025, 01:55 AM   #5
skil-phil
Connoisseur
skil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animals
 
skil-phil's Avatar
 
Posts: 84
Karma: 6698
Join Date: Sep 2022
Location: South Africa
Device: kindle pw10
No never did figure it out.
Pity as I still have to do it manually.
skil-phil is offline   Reply With Quote
Old 06-21-2025, 02:15 AM   #6
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,689
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
The fact that there is no Test field for Tags suggests to me it's not doable.

Click image for larger version

Name:	Screenshot 2025-06-21 160735.jpg
Views:	22
Size:	154.9 KB
ID:	216389

Tags is a comma separated, multiple value field.

BR.
BetterRed is offline   Reply With Quote
Old 06-21-2025, 02:08 PM   #7
crnirg
Connoisseur
crnirg began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Nov 2010
Location: Niš, Srbija
Device: TCL Nxtpaper 11, Kindle PW 2024
Quote:
Originally Posted by skil-phil View Post
This example works fine except for the tag Thriller.

A.J. Carter-Novel-08-The Private Tutor-2024-Thriller.epub
Thanks
Maybe you put Thriller in another field that you don't use (Publisher, Series...) and then copy it to the Tag field later.
crnirg is offline   Reply With Quote
Old 06-22-2025, 02:35 AM   #8
skil-phil
Connoisseur
skil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animals
 
skil-phil's Avatar
 
Posts: 84
Karma: 6698
Join Date: Sep 2022
Location: South Africa
Device: kindle pw10
Thanks BR. Though as much but thought there might be a way to add a field

Crnirg: Will try that idea. Thanks

Last edited by skil-phil; 06-22-2025 at 02:54 AM.
skil-phil is offline   Reply With Quote
Old 06-22-2025, 06:43 AM   #9
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,400
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
You could use the GetFileName plugin then parse out the tags later using search & replace or action chains.
chaley is offline   Reply With Quote
Old 06-23-2025, 02:08 AM   #10
skil-phil
Connoisseur
skil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animals
 
skil-phil's Avatar
 
Posts: 84
Karma: 6698
Join Date: Sep 2022
Location: South Africa
Device: kindle pw10
Thanks. Will look at that.
skil-phil is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding books from library A to library B Koosr1946 Library Management 2 10-21-2024 01:32 PM
Adding Books to Library MikeHackney Calibre 11 10-16-2015 10:47 AM
Adding books already in library directory but not library database sfguy5874 Library Management 1 07-07-2012 04:33 AM
Adding new books to the library robertsoakes Development 1 05-09-2012 01:01 PM
Duplicates ! and adding new books to library anickson Calibre 4 10-11-2010 03:48 PM


All times are GMT -4. The time now is 05:00 PM.


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