Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 50094

calibredb 'merge'

$
0
0
Is there a way to have calibredb use the 'merge' action I use via the GUI? This not the same as adding a format.

I am cleaning up a few libraries I have integrated. I have a reliable identifier I can use to identify duplicates (CRC,extension,filesize) but other associated information such tags and tag-like fields.. These are bitwise-identical files, but I want to aggregate the supplementary information.

What I'd like to do is write a script that will examine all sets of titles with the same unique key, and where the titles and authors match, merge them into a single entry. (I'll want to examine where these things differ to see which ones I prefer, so I'll still need to handle these ones manually.)

I could make my script a little more sophisticated, of course, and handle the aggregation myself via set_metadata... but if it's already built-in, I'd rather do that. It's less work for me, and much more importantly, less prone to error.

Viewing all articles
Browse latest Browse all 50094

Latest Images

Trending Articles



Latest Images