Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 09-14-2025, 05:58 PM   #1
Far_Pen_6884
Enthusiast
Far_Pen_6884 began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Jul 2025
Device: paperwhite
Question How to Copy and Round Custom #rating Column to Default Rating Stars

I want to copy all values from my custom column #rating to Calibre’s default rating column. My custom column allows half stars, so I need each value rounded either down or up to the nearest full star before copying. What’s the best way to do this—either with scripts, Calibre’s command line, or built-in functions? Any tips or examples would be greatly appreciated!
Far_Pen_6884 is offline   Reply With Quote
Old Yesterday, 07:32 AM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,509
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Use calibre's search & replace to copy the values. They are rounded down.
Click image for larger version

Name:	Clipboard01.jpg
Views:	7
Size:	126.8 KB
ID:	218108

You can round up if you use a template as the source, as in
Click image for larger version

Name:	Clipboard02.jpg
Views:	9
Size:	117.5 KB
ID:	218109

However, note that the problem you reported in Searching for custom column #rating with calibredb gives unkown sort field and are working around with this copy has been fixed.
chaley is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom rating column in the database ownedbycats Library Management 6 03-16-2022 02:31 PM
Build Custom Stars Rating Column. oren64 Calibre 2 09-18-2016 04:18 AM
Custom column - Rating twstdwspr Library Management 7 09-24-2015 08:14 PM
Decimal "Rating" column (Custom) and Stars Chris_Snow Library Management 6 04-06-2015 12:25 PM
Calibre rating column displays lines not stars greenlees Calibre 3 12-06-2012 02:27 PM


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


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