View Single Post
Old 07-07-2013, 11:09 PM   #164
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by PeterT View Post
David; maybe my ignorance is showing... Is there an easy means to just remove all traces of books on the SD card from the Kobo database without actually dropping the books from the SD card?

I suppose I'm thinking of something along the lines of a quick removal from the database of all rows in the content, shelf_contents table (and any other tables that I've overlooked) with /mnt/sd as the location.
I usually just put another SD card into the device. That removes all the books that were on the first card and adds those from the second. If the seconds is empty, none get added.

It shouldn't be that hard to implement as most of the code is already in the driver. I'll have a look at it.
davidfor is offline