View Single Post
Old 10-18-2022, 04:26 AM   #378
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,731
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by Rellwood View Post
I don't know if this has been asked, but is there some way of being able to get the views from one library into another?

I have one library (main) that has all the best views, but another library I am working with has only a couple. The columns are pretty much the same, but I can't figure out how to do it without copying over one metatadata_pref.json to the other and just resetting the library from the metadata - which ends up a mess.

Any suggestions?
I definitely wouldn’t recommend messing with copying over the entire json file, it will wreck all your other plugin settings. If you were extremely careful you could copy the relevant json section from one to the other but chances are high you screw up with the wrong number of braces or commas unless you are diligent. So you should definitely keep a backup copy you can rollback to if you were to attempt it.

It sounds a reasonable feature request for the plugin. I will put it on the rainy day list to investigate. There are a few wrinkles I’m not sure how I will deal with until I try it - custom columns in a view that don’t exist in the target db, a view already existing with that same name etc. It will need at least one new dialog to pick the library. So not a five minute change…
kiwidude is offline   Reply With Quote