![]() |
#1 |
Junior Member
![]() 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?
|
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() 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.
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |