Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-03-2010, 07:20 AM   #1
Gwen Morse
Addict
Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.
 
Posts: 254
Karma: 59872
Join Date: Dec 2009
Location: New York, USA
Device: Kindle 3 (wifi) + nokia n900 tablet phone
Database snafu, way to clean it up?

I'm using Dropbox with Calibre. I'm not sure if this is related to Dropbox or not, but, I've ended up with a _number_ of empty folders (a few hundred in a collection of several thousand ebooks). In some cases the folders are completely empty, in others I just have a jpg (cover art). I think the latter may be after I grabbed metadata and covers for "missing" books.

Is there a way to cleanly remove these entries from my Calibre database? I still have all my ebooks backed up elsewhere so I haven't lost anything. But, I'd like to find a way to clean the bad entries out so I can re-import the books I'm missing.

I was hoping for a way to search for entries with...perhaps..."no" format type and entries with only cover art (or only jpg)...any search options that would be useful?
Gwen Morse is offline   Reply With Quote
Old 08-03-2010, 07:49 AM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by Gwen Morse View Post
Is there a way to cleanly remove these entries from my Calibre database? I still have all my ebooks backed up elsewhere so I haven't lost anything. But, I'd like to find a way to clean the bad entries out so I can re-import the books I'm missing.
I recall someone yesterday cleaning their library of rogue folders by using the move library feature, found by clicking on the library icon. You did say you have everything backed up, right?

If I was going to try this I would first go to Preferences - advanced and Check Database integrity. Upon completion of this check I would deal with anything calibre pointed out first.

Then I would choose, via calibre's library icon, to move my library to another directory in my Dropbox.

Calibre would then move everything it is aware of and leave the junk behind and I would now have a clean library structure.

I haven't done this yet myself but it was recently reported to have worked great.

Good Luck.

Update: Here is the post from the person that did this yesterday.
DoctorOhh is offline   Reply With Quote
Advert
Old 08-03-2010, 08:51 AM   #3
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
FYI: I am in the middle of coding/testing a new function to move out of the Calibre library any folders/files that do not appear to belong to Calibre according to the metadata.db database.

This is in effect the converse of the suggested (and already available) method of moving the library to leave behind the potentially garbage files. Its intent is to help with tidying up Calibre libraries that have gathered up superflous folders/files over time or due to operator error. Once the unknown files have been extracted the user can then peruse them to decide what to do with them (if anything). It should be a lot faster than having to move the whole library to separate the good files from the (potentially) bad ones.

If Kovid accepts the changes it should appear in Calibre in the not too distant future.
itimpi is offline   Reply With Quote
Old 08-03-2010, 09:04 AM   #4
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by itimpi View Post
FYI: I am in the middle of coding/testing a new function to move out of the Calibre library any folders/files that do not appear to belong to Calibre according to the metadata.db database.
I would find this useful.
Starson17 is offline   Reply With Quote
Old 08-03-2010, 09:12 AM   #5
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Quote:
Originally Posted by Starson17 View Post
I would find this useful.
I was surprised by the number of superfluous folders/files I had accumulated over time that my testing has shown up
itimpi is offline   Reply With Quote
Advert
Old 08-03-2010, 09:58 AM   #6
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by itimpi View Post
FYI: I am in the middle of coding/testing a new function to move out of the Calibre library any folders/files that do not appear to belong to Calibre according to the metadata.db database.
Excellent!
DoctorOhh is offline   Reply With Quote
Old 08-03-2010, 10:42 AM   #7
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by Gwen Morse View Post
I was hoping for a way to search for entries with...perhaps..."no" format type ...
@Gwen... In the meantime a simple search will show you books with no formats. Type format:false in the search bar.
jackie_w is offline   Reply With Quote
Old 08-03-2010, 10:54 AM   #8
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by jackie_w View Post
@Gwen... In the meantime a simple search will show you books with no formats. Type format:false in the search bar.
Yes, but this won't show folders that Calibre doesn't know about, which may be empty of books as well (or full of books). I've been recommending "Move Library|Check DB Integrity" after doing a few tests on my test DB. If the library is not too large, taking those steps first, followed by the format:false search, should give good results.
Starson17 is offline   Reply With Quote
Old 08-03-2010, 11:01 AM   #9
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by Starson17 View Post
Yes, but this won't show folders that Calibre doesn't know about, which may be empty of books as well (or full of books). ...
Sorry, I know that. I should have been more specific.

I did a library move a few days ago using the new features. It worked really well and left a couple of "orphan" directories behind in the old library directory which I could examine at leisure.
jackie_w is offline   Reply With Quote
Old 08-03-2010, 11:06 AM   #10
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by Starson17 View Post
I've been recommending "Move Library|Check DB Integrity" ...
@Starson... just asking for my future info. Is the Check Database Integrity actually necessary if you have just done a library move? Wouldn't the fact that Calibre knew enough about the files to move them mean that the database was clean?
jackie_w is offline   Reply With Quote
Old 08-03-2010, 11:45 AM   #11
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by jackie_w View Post
@Starson... just asking for my future info. Is the Check Database Integrity actually necessary if you have just done a library move? Wouldn't the fact that Calibre knew enough about the files to move them mean that the database was clean?
Excellent question - one that I don't know the answer to. I did several Move tests, but no integrity tests. I didn't test all conditions I could think of, just those that convinced me it was safe and did what I wanted it to do. I remember thinking at the time that I wasn't sure whether a library "Move" operated at the directory or file level (directories = a "book"; files = a "format"), while the Check Database Integrity definitely checked files, so I suggested both.
Starson17 is offline   Reply With Quote
Old 08-03-2010, 12:01 PM   #12
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Thank you.
jackie_w is offline   Reply With Quote
Old 08-03-2010, 12:15 PM   #13
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,864
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
An integrity check (apart from checking for the existence of individual formats) also does an SQL integrity check, it basically dumps and reloads the sql from the metadata.db file, so it is generally a good idea to do it.

A move library simply copies all folders that calibre knows about, but does not check if the files are correctly linked. This is because calibre has a feature where if in metadata.db a format is specified, but for some reason the user changes the filename of the file in the calibre library, while leaving it in the correct folder, calibre will automatically pick up the changed file.

In other words, there isn't a strict one to one relationship between formats in the db and files on the disk.
kovidgoyal is offline   Reply With Quote
Old 08-06-2010, 04:50 PM   #14
Gwen Morse
Addict
Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.
 
Posts: 254
Karma: 59872
Join Date: Dec 2009
Location: New York, USA
Device: Kindle 3 (wifi) + nokia n900 tablet phone
Thanks for all the answers. I'll be able to work on my database over the upcoming weekend.

I'll make sure to go through all the steps (checking database integrity before moving the folders).

Yes, everything is backed up. What isn't backed up is the actual calibre database...by putting it in dropbox I only have one version.

Thanks for the tag to find ebook-less folders. That will really help!

Gwen
Gwen Morse is offline   Reply With Quote
Old 08-06-2010, 11:48 PM   #15
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by Gwen Morse View Post
Yes, everything is backed up. What isn't backed up is the actual calibre database...by putting it in dropbox I only have one version.
To be on the safe side I'd back up the entire libray in a folder outside of the dropbox. If for some reason there is a catastrophic loss you can recover via dropbox but you can only recover the files in one folder at a time. It would be a real chore if you had to recover an entire library this way.
DoctorOhh is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Screen clean haino Sony Reader 1 04-25-2010 12:44 PM
PRS-600 How should i clean the screen? sazono Sony Reader 13 09-13-2009 01:16 PM
Best way to get clean HTML JSWolf Kindle Formats 18 04-02-2009 11:00 AM
How to clean the screen? veeraganesh iRex 2 10-28-2008 11:11 PM
How do you clean the screen? GatorDeb Sony Reader 16 12-29-2007 03:53 PM


All times are GMT -4. The time now is 04:26 AM.


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