Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-31-2022, 10:54 PM   #1
Fynjisx
Connoisseur
Fynjisx began at the beginning.
 
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?
Fynjisx is offline   Reply With Quote
Old 08-01-2022, 02:54 AM   #2
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,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
BetterRed is offline   Reply With Quote
Old 08-01-2022, 07:23 AM   #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
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.
theducks is online now   Reply With Quote
Old 08-01-2022, 09:45 PM   #4
Fynjisx
Connoisseur
Fynjisx began at the beginning.
 
Posts: 91
Karma: 10
Join Date: Jul 2022
Location: Greenland
Device: xiaomi
Quote:
Originally Posted by BetterRed View Post
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.
BR
drawing from below
Attached Thumbnails
Click image for larger version

Name:	2022-08-02_064108.jpg
Views:	146
Size:	76.4 KB
ID:	195524  
Fynjisx is offline   Reply With Quote
Old 08-02-2022, 12:42 AM   #5
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Fynjisx View Post
drawing from below
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.
davidfor is offline   Reply With Quote
Old 08-02-2022, 02:40 AM   #6
Fynjisx
Connoisseur
Fynjisx began at the beginning.
 
Posts: 91
Karma: 10
Join Date: Jul 2022
Location: Greenland
Device: xiaomi
Quote:
Originally Posted by davidfor View Post
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.
please write me a regular expression by which I would parse the string and be sure to test it in caliber:
Ajzek A.B. - Title - (Morgan_Kaufmann_Publisher, 1980).djvu
Fynjisx is offline   Reply With Quote
Old 08-05-2022, 03:05 AM   #7
Fynjisx
Connoisseur
Fynjisx began at the beginning.
 
Posts: 91
Karma: 10
Join Date: Jul 2022
Location: Greenland
Device: xiaomi
Quote:
Originally Posted by davidfor View Post
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.
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?
Fynjisx is offline   Reply With Quote
Old 08-06-2022, 09:45 AM   #8
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Fynjisx View Post
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?
For that you will need to use the bulk metadata editor and the "Search and replace" tab. You can use regex to split the filename string and put it into the column of your choice. There are plenty of discussion on using the "Search and replace" in the forum to have a look at. And I think there were some examples in the GetFileName thread.

You could also look at the Action Chains plugin. There is probably a way to do this using that plugin.
davidfor is offline   Reply With Quote
Old 08-07-2022, 12:18 AM   #9
Fynjisx
Connoisseur
Fynjisx began at the beginning.
 
Posts: 91
Karma: 10
Join Date: Jul 2022
Location: Greenland
Device: xiaomi
Quote:
Originally Posted by davidfor View Post
... You can use regex to split the filename string and put it into the column of your choice. There are plenty of discussion on using the "Search and replace" in the forum to have a look at. And I think there were some examples in the GetFileName thread.
teach to use. where should these regular expressions be entered? can you show with an example?
Fynjisx is offline   Reply With Quote
Old 08-07-2022, 02:39 PM   #10
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,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.
JSWolf is online now   Reply With Quote
Reply


Forum Jump

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


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


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