![]() |
#1 |
Connoisseur
![]() Posts: 91
Karma: 10
Join Date: Jul 2022
Location: Greenland
Device: xiaomi
|
how to populate pubdate and page count when adding a book?
Hi all! Adding the title of the book to the caliber, the pubdate field is not filled in, in fact it does not exist. Instead, there is another publisher. I would also like to get information about the number of pages of the book from the file name into my custom column. Is there such a possibility?
|
![]() |
![]() |
![]() |
#2 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
If the date of publication is in the format file added (e.g. EPUB, PDF) it will be extracted and put into the Published/pubdate column, otherwise use the Metadata download feature to populate that column.
The Count Pages plugin has a number of options for determining page counts, see Index of plugins BR |
![]() |
![]() |
![]() |
#3 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
Both of BR's suggestions are run POST import as the fill in the blanks (that do not exist until created by the import)
Pubdate is a standard DC metadata (note:Calibre has a column for that. The book creator was SLOPPY if it is missing) Pages, words, ... all use custom columns and can't be imported unless the person supplying the book has the exact same custom column USAGE. FWIW If Calibre imports a book THAT populates {series} properly, Calibre was used someplace in its creation. |
![]() |
![]() |
![]() |
#4 |
Connoisseur
![]() Posts: 91
Karma: 10
Join Date: Jul 2022
Location: Greenland
Device: xiaomi
|
drawing from below
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
When you add a book to calibre, it can get metadata from two places. One is the internal metadata for the formats that support it. The other is by parsing the file name. Your image suggests you want to get the metadata from the filename. In that case, you need to write a regex to parse you filenames. But, the only metadata supported when doing this are those listed. These are the standard metadata items that calibre has built into it. This does not include the page count.
To add page count, I would normally recommend the Page Count plugin. That can calculate it from the book or download it from some site. An alternative is to use the GetFileName plugin to put the filename in a custom column and then parse that to put the page count in another column. |
![]() |
![]() |
![]() |
#6 | |
Connoisseur
![]() Posts: 91
Karma: 10
Join Date: Jul 2022
Location: Greenland
Device: xiaomi
|
Quote:
Ajzek A.B. - Title - (Morgan_Kaufmann_Publisher, 1980).djvu |
|
![]() |
![]() |
![]() |
#7 |
Connoisseur
![]() Posts: 91
Karma: 10
Join Date: Jul 2022
Location: Greenland
Device: xiaomi
|
How can I parse a string using getfilename to get the information I need? Installed the plugin. It displays the file name. Now you have to parse. How to submit it?
|
![]() |
![]() |
![]() |
#8 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
You could also look at the Action Chains plugin. There is probably a way to do this using that plugin. |
|
![]() |
![]() |
![]() |
#9 |
Connoisseur
![]() Posts: 91
Karma: 10
Join Date: Jul 2022
Location: Greenland
Device: xiaomi
|
teach to use. where should these regular expressions be entered? can you show with an example?
|
![]() |
![]() |
![]() |
#10 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
If this can be done, it would be done using the Action Chains plugin.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding Custom Cover Page to e-book | jonesb | Editor | 1 | 05-28-2022 10:22 AM |
Stop .ncx from Adding Page Count | serialkiller | Conversion | 2 | 08-11-2020 10:47 AM |
Word Count and Page Count? | CrossReach | Library Management | 2 | 07-19-2018 05:44 PM |
Populate tags before adding books | karimnaguib | Library Management | 4 | 11-08-2013 01:16 PM |
How to automatically populate a tag with the decade from the pubdate via python | smoothrolla | Library Management | 5 | 11-19-2011 06:41 AM |