|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 797
Karma: 2873645
Join Date: Jul 2008
Location: Texas
Device: PW5, Oasis 3, K4B(NT), K3/KK
|
Is there a way to edit the Comments (ie. book summary) automatically during download?
I usually opt for Amazon metadata over that from other sites. Often I end up with a huge amount in the Comments (ie. book summary) field. Usually, stuff from reviews and about author that I really don't want.
I notice that those sections often start with ###. Example, there may be an "### Review" heading and a "### From the Author" heading. Is there anyway, while downloading the metadata, to ignore/delete everything beginning with ### Review? In all the ones I've seen, I don't mind losing everything after "### Review". Is there an expression of some sort that can be used in the plugboards to truncate the field and delete everything from "### Review" to the end? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,356
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
no you cant modify comments during download but you can use the search and replace function to modify comments in bulk (for all selected books).
Last edited by kovidgoyal; 08-02-2023 at 02:42 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 797
Karma: 2873645
Join Date: Jul 2008
Location: Texas
Device: PW5, Oasis 3, K4B(NT), K3/KK
|
thanks. so with the search and replace, is it possible to search for: ### Review and from that point select everything in the comments after it and delete (replace with nothing)?
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,356
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yes it is using regular expression mode
|
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 797
Karma: 2873645
Join Date: Jul 2008
Location: Texas
Device: PW5, Oasis 3, K4B(NT), K3/KK
|
I did go to help, etc. and all the explanation still might as well be Greek to me. But, after searching here too, I was able to piece together an expression that seems to be working.
I search for: (?s)(<br>### Review<br>(.*?)<\/div>) and replace with: </div> That, on my limited test set of 5 books, seems to remove everything from ### Review to the end, but leaves the actual book description, which is what I want. So I'll continue trying and watching. |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre 5.18 - Summary to Comments? | Nalco | Library Management | 2 | 05-22-2021 05:09 AM |
External HTML Editor to edit Book Details panel Comments? | cgrapski | Related Tools | 4 | 04-22-2021 02:54 AM |
Is there a way to automatically/batch add the summary of the epub as a page? | beejsbj | Calibre | 6 | 09-22-2018 09:53 AM |
Comments missing (summary) | chewiesw | Library Management | 2 | 11-17-2016 02:58 PM |
Metadata comments as book summary | pappcam | Library Management | 3 | 03-05-2011 12:29 AM |