Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 04-23-2020, 03:54 AM   #1
julthep
Junior Member
julthep began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2020
Device: Okular on tablet
Problem with set metadata without comments

I don't know the straight way how to add a new book with filename automatically put into comments. So how I do is go to 'Preferences'>'Import/export'>'Adding books' in 'Reading metadata' tab, uncheck 'Read metadata from file contents rather than filename' and use '(?P<comments>.+)' in 'Regular expression'. After adding a new book, everything okay as expected; the filename has been put to both 'Comments' and 'Title' of the book (which I think 'Title' also got filename for failsafe of Calibre not creating a book without title). And when I click 'Set metadata for the book from the selected format', all other fields have been filled with metadata read from the file correctly, including the new 'Title'. The problem is, the 'Comments' has been replaced with new filename from the Calibre library also. I'm okay if it should be replaced with real "Comments" from the metadata in the file. But in case there are no comments metadata, should it be replaced with the new filename again?
julthep is offline   Reply With Quote
Old 04-23-2020, 06:40 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,342
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If you want to get the filename, use the getfilename plugin which will do it automatically and put the filename into a column of your choice.
kovidgoyal is offline   Reply With Quote
Advert
Old 04-23-2020, 08:44 AM   #3
julthep
Junior Member
julthep began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2020
Device: Okular on tablet
Great! thanks for your advice. After trying the plugin, that's what I'm looking for. Thank you again for the great app you create for us.
julthep is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Metadata Comments formatting Andrew Ashling Calibre 4 11-07-2019 07:42 AM
Metadata comments formatting? darrenmcg Calibre 13 01-11-2016 04:29 PM
Metadata Comments - Is it useful? LordP Calibre 14 03-13-2012 07:11 PM
Display of comments in Metadata geoffwood Calibre 3 09-03-2011 10:19 AM
Metadata - I only want to download Comments guyanonymous Calibre 9 01-23-2010 07:36 AM


All times are GMT -4. The time now is 08:17 PM.


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