Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 07-03-2013, 10:30 PM   #16
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
@GeoffR: I think my approach would be to move the images directory, make a new one, and then for each image found in the SQL database move the corresponding image back to the new images directory.
Not a bad way of doing it. The following query will get the image ids:

Code:
SELECT DISTINCT ImageId
FROM content
WHERE ContentType = 6
Then doing a "move ImageId*" to images directory would restore all the cover images for the books the device knows about. There are other images should also to be recovered. The images for the badges are in the directory as well.

I started on adding this to the utilities plugin yesterday. I thought of absurdly simple way of working out the extras files. I just need to finish writing the code to do prompting and the actual deletes.
davidfor is offline   Reply With Quote
Old 07-03-2013, 10:43 PM   #17
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,378
Karma: 78877538
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by davidfor View Post
Not a bad way of doing it. The following query will get the image ids:

Code:
SELECT DISTINCT ImageId
FROM content
WHERE ContentType = 6
Then doing a "move ImageId*" to images directory would restore all the cover images for the books the device knows about. There are other images should also to be recovered. The images for the badges are in the directory as well.

I started on adding this to the utilities plugin yesterday. I thought of absurdly simple way of working out the extras files. I just need to finish writing the code to do prompting and the actual deletes.
Geez; it's at least 12 minutes since you posted... Where's the final version! You're slowing down....
PeterT is offline   Reply With Quote
Advert
Old 07-04-2013, 03:52 AM   #18
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by davidfor View Post
Then doing a "move ImageId*" to images directory would restore all the cover images for the books the device knows about. There are other images should also to be recovered. The images for the badges are in the directory as well.
Where there is a book with the same author/title as a recommendation, Calibre shows the recommendation as if it were a duplicate book, so I had missed deleting them when I thought I had deleted all the recommendations. But they can be distinguished from real books because they have zero size, and after deleting them the few extra images remaining in my Glo's images directory are probably just the badges.

So now I know what is going on, it seems the existing Kobo driver does all I need after all. I just need to delete all the old recommendations occasionally and there should be no problem.
GeoffR is offline   Reply With Quote
Old 07-04-2013, 07:54 AM   #19
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
Geez; it's at least 12 minutes since you posted... Where's the final version! You're slowing down....
https://www.mobileread.com/forums/sho...38#post2560238. Happy?
davidfor is offline   Reply With Quote
Old 07-11-2013, 01:02 AM   #20
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 davidfor View Post
I discovered last night that I had forgotten to attach the beta plugin to that post. See https://www.mobileread.com/forums/sho...60#post2565160 for the latest version. With an attachment.
davidfor is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying Sigil Images Folder EditorOne Sigil 5 06-08-2013 08:50 PM
Calibre content server -- save to a folder? Woodstonian Kobo Reader 1 11-02-2012 08:18 PM
K4 Mac or PC HELP PLEASE! Books missing in kindle content folder! fictionaddiction Amazon Kindle 7 04-06-2012 02:42 PM
Images directory in entry' folder Perkin Calibre 10 02-07-2011 09:22 PM
Images Folder - Resize files Fossil Sigil 9 07-24-2010 11:36 AM


All times are GMT -4. The time now is 06:50 PM.


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