Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 03-31-2017, 07:21 AM   #1
hotwired
Member
hotwired began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Feb 2014
Device: kindle hdx 8.9
Library full of Duplicates

I have 3-4 of each book with a number in parenthesis after it. For example in my Stephen King folder I might have
A Face in the Crowd (869)
A Face in the Crowd (2)

Approximately 85% of my library is duplicates like this basically from sloppy "quick" conversion using Calibre (my sloppines, not Calibres). However, when using the find duplicates plugin, and trying every parameter possible, it shows NO DUPLICATES. I tried ccCleaner and that finally found them all but it's only finding them by folder. Only ONE folder has .mobi file in it while the DUPLICATE folder has .epubs so I can't just check off random duplicates in cccleaner because I might be deleting the only folder containing the .mobi which is my preferred format.

Thanks for any tips or alternate pieces of software ... I could take a week off work and do alot of "point, click and delete" but I'd rather not if I don't have to! Thanks all!!
hotwired is offline   Reply With Quote
Old 03-31-2017, 09:10 AM   #2
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Quote:
Originally Posted by hotwired View Post
I have 3-4 of each book with a number in parenthesis after it. For example in my Stephen King folder I might have
A Face in the Crowd (869)
A Face in the Crowd (2)

Approximately 85% of my library is duplicates like this basically from sloppy "quick" conversion using Calibre (my sloppines, not Calibres). However, when using the find duplicates plugin, and trying every parameter possible, it shows NO DUPLICATES. I tried ccCleaner and that finally found them all but it's only finding them by folder. Only ONE folder has .mobi file in it while the DUPLICATE folder has .epubs so I can't just check off random duplicates in cccleaner because I might be deleting the only folder containing the .mobi which is my preferred format.

Thanks for any tips or alternate pieces of software ... I could take a week off work and do alot of "point, click and delete" but I'd rather not if I don't have to! Thanks all!!

Hotwired:

The Find Duplicates plug-in uses metadata.db. Your library's metadata.db apparently no longer reflects reality due to (forbidden) manual changes to the the library's OS directory structure and contents.

Try this:

[1] Stop manually changing the library's directory structure and contents.

[2] Click Library > Library Maintenance > Check Library and then let Calibre thoroughly check your library, show you what is wrong, and then fix it. Repeat this step as many times as needed until your library is "clean".

[3] Using Bulk Edit Metadata for 100% of your books, "Automatically Set Author Sort", "Change Title to Title Case", and then finally "Update Title Sort".

[4] Using the Quality Check plug-in, standardize the Author Names as FN LN or LN,FN (your choice), but make all of the books comply with your choice.

[5] Using the Quality Check plug-in, standardize the Author Initials.

[6] Run Find Duplicates again.


DaltonST
DaltonST is offline   Reply With Quote
Advert
Old 03-31-2017, 10:48 AM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,428
Karma: 145491800
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by hotwired View Post
I have 3-4 of each book with a number in parenthesis after it. For example in my Stephen King folder I might have
A Face in the Crowd (869)
A Face in the Crowd (2)

Approximately 85% of my library is duplicates like this basically from sloppy "quick" conversion using Calibre (my sloppines, not Calibres). However, when using the find duplicates plugin, and trying every parameter possible, it shows NO DUPLICATES. I tried ccCleaner and that finally found them all but it's only finding them by folder. Only ONE folder has .mobi file in it while the DUPLICATE folder has .epubs so I can't just check off random duplicates in cccleaner because I might be deleting the only folder containing the .mobi which is my preferred format.

Thanks for any tips or alternate pieces of software ... I could take a week off work and do alot of "point, click and delete" but I'd rather not if I don't have to! Thanks all!!

Quote:
Originally Posted by DaltonST View Post
Hotwired:

The Find Duplicates plug-in uses metadata.db. Your library's metadata.db apparently no longer reflects reality due to (forbidden) manual changes to the the library's OS directory structure and contents.

Try this:

[1] Stop manually changing the library's directory structure and contents.

[2] Click Library > Library Maintenance > Check Library and then let Calibre thoroughly check your library, show you what is wrong, and then fix it. Repeat this step as many times as needed until your library is "clean".

[3] Using Bulk Edit Metadata for 100% of your books, "Automatically Set Author Sort", "Change Title to Title Case", and then finally "Update Title Sort".

[4] Using the Quality Check plug-in, standardize the Author Names as FN LN or LN,FN (your choice), but make all of the books comply with your choice.

[5] Using the Quality Check plug-in, standardize the Author Initials.

[6] Run Find Duplicates again.
A slightly different solution is after you clean up your database using DaltonST's directions, don't do step 6 just yet. Instead...

1. Sort by title
2. Pick one of the different formats with the correct metadata
3. On the other formats, right click and select Open containing folder.
4. On the picked entry, select and then press E. This will open the metadata editor.
5. Drag/drop the other format into the Medata editor dialog in the upper right
6. Once you see the other format, close Windows Explorer and delete that format's entry
7. Do this for every format of the same eBook
8. Now run a find duplicate
JSWolf is offline   Reply With Quote
Old 04-07-2017, 07:24 AM   #4
hotwired
Member
hotwired began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Feb 2014
Device: kindle hdx 8.9
Check library feature just deletes all my books

Thankfully I have my books backed up. But I just ran the "check library" feature. "Mark all for fix" wouldn't do anything so I marked all for deletion and it did what was promised. Wiped out my entire library. For whatever reason this plugin doesn't even come close to doing ANYTHING that I've seen it described as doing. Very strange. I know it's partly me doing the old fashioned thing (physically placing books in the folder that is my library). This is how I learned so it's tough for me to move over to the "database" way of thinking. I'll just restore from backup, then literally, click on every folder (4,000 +) and delete the extras unless I find something else that works. Thank you though for your suggestions. If anything I've said here rings a bell feel free to point me in the right direction though!
hotwired is offline   Reply With Quote
Old 04-07-2017, 07:31 AM   #5
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,895
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Moderator Notice
Moved posts to their own thread. Check library feature is not part of the Find Duplicates plugin. It appears your duplicates were not part of your calibre library just files in that folder. The Find duplicates plugin does not check the folder level for duplicate books.

Last edited by DoctorOhh; 04-07-2017 at 07:51 AM.
DoctorOhh is offline   Reply With Quote
Advert
Old 04-07-2017, 07:46 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,895
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by hotwired View Post
But I just ran the "check library" feature. "Mark all for fix" wouldn't do anything so I marked all for deletion and it did what was promised. Wiped out my entire library.
You told the Ceck library feature of calibre to delete all items in your library folder that were not listed in your library's database. It did as expected. The only books / files in that folder should have been already added to your library database. This feature allows you to ensure your library matches the files in the folder.

Quote:
Originally Posted by hotwired View Post
For whatever reason this plugin doesn't even come close to doing ANYTHING that I've seen it described as doing.
The Find duplicates plugin finds duplicates in your calibre library database not in the folder structure. Check library feature is a feature of calibre not part of a plugin.

Quote:
Originally Posted by hotwired View Post
Very strange. I know it's partly me doing the old fashioned thing (physically placing books in the folder that is my library).
Partly you is an understatement. Storing files in your calibre library folder can lead to exactly what you discovered.

Quote:
Originally Posted by hotwired View Post
This is how I learned so it's tough for me to move over to the "database" way of thinking. I'll just restore from backup, then literally, click on every folder (4,000 +) and delete the extras unless I find something else that works.
Once you have your calibre library is restored you can create a new (empty) library then use the Copy to library feature to move all of your books to a new library. Once all your books are moved whatever is in the previous folder structure are files that were not part of your calibre library database.

Last edited by DoctorOhh; 04-07-2017 at 07:56 AM.
DoctorOhh is offline   Reply With Quote
Old 04-11-2017, 11:06 AM   #7
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Quote:
Originally Posted by hotwired View Post
Thankfully I have my books backed up. But I just ran the "check library" feature. "Mark all for fix" wouldn't do anything so I marked all for deletion and it did what was promised. Wiped out my entire library. For whatever reason this plugin doesn't even come close to doing ANYTHING that I've seen it described as doing. Very strange. I know it's partly me doing the old fashioned thing (physically placing books in the folder that is my library). This is how I learned so it's tough for me to move over to the "database" way of thinking. I'll just restore from backup, then literally, click on every folder (4,000 +) and delete the extras unless I find something else that works. Thank you though for your suggestions. If anything I've said here rings a bell feel free to point me in the right direction though!

Hotwired:

You need to start over from the beginning with Calibre.

[1] Create a fresh, new, empty Calibre Library, and switch to it.

[2] Configure Calibre. See the attached image.

[3] Start using the "Add Books" button that you placed on your ToolBar in Step 2, above. Do not ever use Windows Explorer to add, change or delete books.

[4] When you Add Books, and Calibre tells you that it found duplicates, choose wisely as to what Calibre should do or not do.

I suggest that you first add a few small samples of your 4,000+ books so you can test-and-tune your Preferences to suit your needs.

Adding 4,000+ books might take a few hours depending on your computer system, so add them in reasonably sized chunks.

It would be a good idea to read the Calibre User Manual found at https://manual.calibre-ebook.com/



DaltonST
Attached Thumbnails
Click image for larger version

Name:	hotwired.jpg
Views:	492
Size:	934.4 KB
ID:	156119  
DaltonST is offline   Reply With Quote
Old 04-11-2017, 05:43 PM   #8
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,660
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DaltonST View Post
It would be a good idea to read the Calibre User Manual found at https://manual.calibre-ebook.com/
to starting over etc

Also a good idea to watch the Video Tutorials

The Grand Tour and the Editor videos are the only instructional videos I ever recommend period, generally I loathe such things. Watch a segment, pause, try it, repeat segment until you get it right, next segment...

For me at least, Kovid gets the pitch, structure, content, and pace just right.

BR
BetterRed is online now   Reply With Quote
Old 04-11-2017, 06:20 PM   #9
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,942
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
FWIW I would do it slightly different

1) I would make sure duplicate detection is turned on in
Preferences: Adding Books: When using Copy to Library
Preferences: Adding Books: Automerge:
2) Create a new (Empty Library).: (your choice) Overwrite or Ignore
<suggest a backup of your old Library, just in case>
3)Select some books in old library: (right-click)Copy to Library Delete, so the list gets smaller): REPEAT
True Dups, get merged. Multiple formats get merged
All that is missing is what source was the best quality
theducks is offline   Reply With Quote
Old 04-11-2017, 06:27 PM   #10
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Ducks, his current library metadata.db is empty because he never used Add Books. He only used Windows Explorer. Hence, my instructions.

DaltonST
DaltonST is offline   Reply With Quote
Old 04-11-2017, 06:34 PM   #11
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,942
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by DaltonST View Post
Ducks, his current library metadata.db is empty because he never used Add Books. He only used Windows Explorer. Hence, my instructions.

DaltonST
theducks is offline   Reply With Quote
Old 04-14-2017, 05:54 AM   #12
hotwired
Member
hotwired began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Feb 2014
Device: kindle hdx 8.9
Thank you!

Thanks so much everyone. You've really got me on the right track. The whole "starting over" advice is where I'll start. I wasn't getting that the duplicate finder was only finding duplicates in the DB (Calibre) not physical duplicates. This all makes perfect sense now.
hotwired is offline   Reply With Quote
Old 04-19-2017, 10:28 AM   #13
Stevenro
Junior Member
Stevenro began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2017
Device: lenovo 5
Smile

Quote:
Originally Posted by DaltonST View Post
Hotwired:

The Find Duplicates plug-in uses metadata.db. Your library's metadata.db apparently no longer reflects reality due to (forbidden) manual changes to the the library's OS directory structure and contents.

Try this:

[1] Stop manually changing the library's directory structure and contents.

[2] Click Library > Library Maintenance > Check Library and then let Calibre thoroughly check your library, show you what is wrong, and then fix it. Repeat this step as many times as needed until your library is "clean".

[3] Using Bulk Edit Metadata for 100% of your books, "Automatically Set Author Sort", "Change Title to Title Case", and then finally "Update Title Sort".

[4] Using the Quality Check plug-in, standardize the Author Names as FN LN or LN,FN (your choice), but make all of the books comply with your choice.

[5] Using the Quality Check plug-in, standardize the Author Initials.

[6] Run Find Duplicates again.


DaltonST
Duplicate Files Deleter is an effective tool to delete the selected duplicate or original files.
Stevenro is offline   Reply With Quote
Old 04-19-2017, 10:29 AM   #14
Stevenro
Junior Member
Stevenro began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2017
Device: lenovo 5
I suggest to use Duplicate Files Deleter its a helpful program.
Stevenro is offline   Reply With Quote
Old 04-19-2017, 10:34 AM   #15
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,942
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Stevenro View Post
I suggest to use Duplicate Files Deleter its a helpful program.
Using ANY OS level app on the Library folder is a recipe for disaster. Calibre tracks what and where in the DB. Using the OS to make ANY changes leaves the DB out of the picture.
Please read the FAQ (Help has the link)
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I've got duplicates in my Calibre library Ptaker Library Management 11 04-09-2013 08:18 AM
No choice of duplicates when copying one library to another BeeTee-Ess Calibre 5 01-12-2013 08:56 PM
Duplicates detection when copying library Giuseppe Chillem Calibre 1 01-07-2013 11:02 PM
Dropbox full - duplicates? Deljah Related Tools 4 06-29-2012 01:42 PM
Duplicates ! and adding new books to library anickson Calibre 4 10-11-2010 03:48 PM


All times are GMT -4. The time now is 11:43 PM.


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