Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-07-2017, 02:59 PM   #1
Shaggydog
Junior Member
Shaggydog began at the beginning.
 
Shaggydog's Avatar
 
Posts: 3
Karma: 10
Join Date: Nov 2017
Device: None
Calibre Folder Names in a Library

When adding a new book to a Calibre library, the author is used as the name of the folder. When adding new books by the same author, the name sometimes get transposed and ends up creating a new folder with the transposed name. For example, books that I have added by Lee Child have ended up with two folders in the Calibre library – “Child, Lee” and “Lee Child”. Short of editing the ebook html and making sure the author reference is the same for all the books, is there an easy way to merge two folders in a Calibre library? I would like all of “Child, Lee” merged with the “Lee Child” folder.

I have edited the metadata author, copied the book to a temporary folder, removed the book and then added it back into Calibre. It still uses the author name I am trying to eliminate.
Shaggydog is offline   Reply With Quote
Advert
Old 11-07-2017, 04:00 PM   #2
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,354
Karma: 2590360
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Dell Venue 8 Pro - Retired:Kindle 3, Clie UX50, T415, ...
Calibre will always place a book in a folder using the name that it wants to use, period. The trick is to influence calibre in such a way that it wants to use the name style you prefer.

Likely the best/easiest way to influence calibre is to edit the metadata using calibre's Edit Metadata dialog after the book is added to the library. By changing the Author field and the Author Sort field to match the fields in the other book that calibre has placed in the folder you prefer (e.g. Lee Child).

In general, you should not be concerned with the folders calibre creates, but it is generally a good idea that a particular author is always listed the same in each of that author's books. I prefer to use the Tag Browser panel to look for authors that are listed multiple times. When I find one, I right-click on one of the author listing and select Manage Authors. There I can edit the Author and Author_Sort fields so that each author is listed consistently.

Last edited by dwig; 11-07-2017 at 04:19 PM.
dwig is online now   Reply With Quote
Old 11-08-2017, 01:13 AM   #3
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,315
Karma: 13599467
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by Shaggydog View Post
“Child, Lee” and “Lee Child”. Short of editing the ebook html and making sure the author reference is the same for all the books, is there an easy way to merge two folders in a Calibre library? I would like all of “Child, Lee” merged with the “Lee Child” folder.

I have edited the metadata author, copied the book to a temporary folder, removed the book and then added it back into Calibre. It still uses the author name I am trying to eliminate.
The folders always use the Author metadata field. If after you ensure you have corrected the author metadata field you still have an aberrant folder check to see if the book is listed in both folders. Some times if you have the book or cover open the files will be copied to the new location but the old folder won't be deleted due to the OS preventing the deletion because it is in use.

Run library maintenance and see what it reports.
DoctorOhh is offline   Reply With Quote
Old 11-10-2017, 05:18 PM   #4
Shaggydog
Junior Member
Shaggydog began at the beginning.
 
Shaggydog's Avatar
 
Posts: 3
Karma: 10
Join Date: Nov 2017
Device: None
Thank you DWIG and DoctorOhh. You both are right, but I was not looking at the folder to see if there was a change after matching the Author and Author Sort fields. I had one folder with one book of the SD Tanner author and a bunch of books in a folder Tanner, SD. I changed the SD Tanner author fields to the Tanner, SD and exited Calibre. I then looked at the folders in the library. Calibre moved the one book to the other folder and deleted the SD Tanner folder. I probably was accomplishing what I wanted but wasn't checking the folder contents to see if the book had been moved. Seeing the folder I assumed it was still there, but it probably had a second book with mismatched author fields.

Once again, thank you for the tips.
Shaggydog is offline   Reply With Quote
Old 11-10-2017, 06:14 PM   #5
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 81,994
Karma: 76410113
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
It’s as well to regard the Calibre library as a “black box”. If you want to get at your books, use the “Save to Disk” or “Send to Device” options in Calibre, rather than looking at the library folders.
HarryT is offline   Reply With Quote
Advert
Old Yesterday, 12:02 PM   #6
Shaggydog
Junior Member
Shaggydog began at the beginning.
 
Shaggydog's Avatar
 
Posts: 3
Karma: 10
Join Date: Nov 2017
Device: None
Being a computer science major, I am aware of the database concept that Calibre uses and let Calibre completely manage its folders.

I get books from a variety of places. The Amazon purchases are in “My Kindle Books” and all others go in “My ebooks” folders. The Caliber library is in its own folder. The books are then added to the Calibre library, using Calibre, from the other folders. The problem occurs when the ebook sources for a given author are different and the author name is reversed from the other ebooks by the same author.
Calibre then uses that to create a separate folder. An example would be “Pendleton, Don” versus “Don Pendleton”. When I update my ereader, I use a MS Surface 3, I use Calibre to write the ebooks to a network disk and then update the Calibre library on the MS Surface 3 with those epub books exported by Calibre.

I had tried the solutions mentioned above, but they didn’t seem to work. My problem was basically me. I would make a change and then check to see if the folder issues were resolved. Seeing the folders still there I assumed the changes didn’t work. Dumb mistake on my part. I should have checked the contents of the folder. I would have seen the one I wanted to go away was empty and the changes did work.

I haven’t found a way to have Calibre clean up empty folders.

Bottomline, you are right HarryT, don’t mess with the database unless you know what you are doing and have the software to do so.
Shaggydog is offline   Reply With Quote
Old Yesterday, 03:36 PM   #7
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: 21,007
Karma: 20776282
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab 2(RIP)
Quote:
Originally Posted by Shaggydog View Post
Being a computer science major, I am aware of the database concept that Calibre uses and let Calibre completely manage its folders.

I get books from a variety of places. The Amazon purchases are in “My Kindle Books” and all others go in “My ebooks” folders. The Caliber library is in its own folder. The books are then added to the Calibre library, using Calibre, from the other folders. The problem occurs when the ebook sources for a given author are different and the author name is reversed from the other ebooks by the same author.
Calibre then uses that to create a separate folder. An example would be “Pendleton, Don” versus “Don Pendleton”. When I update my ereader, I use a MS Surface 3, I use Calibre to write the ebooks to a network disk and then update the Calibre library on the MS Surface 3 with those epub books exported by Calibre.

I had tried the solutions mentioned above, but they didn’t seem to work. My problem was basically me. I would make a change and then check to see if the folder issues were resolved. Seeing the folders still there I assumed the changes didn’t work. Dumb mistake on my part. I should have checked the contents of the folder. I would have seen the one I wanted to go away was empty and the changes did work.

I haven’t found a way to have Calibre clean up empty folders.

Bottomline, you are right HarryT, don’t mess with the database unless you know what you are doing and have the software to do so.
If a folder is left behind, then something (Explorer?) still had a hook on it.
Selecting all books, then Copy to Library (a new, empty library) Delete after copy
is the way with a possible downside. last_modified gets set to now()
theducks is offline   Reply With Quote
Old Yesterday, 09:21 PM   #8
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,315
Karma: 13599467
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by Shaggydog View Post
I haven’t found a way to have Calibre clean up empty folders.
Again, run library maintenance and see what it reports. It allows you to check the folder structure and files against what is in the database. I tested this with an empty folder and it found it and allowed me to delete it.
DoctorOhh is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Calibre's folder structure and long names in Windows crixtiano Calibre 1 07-28-2017 03:05 PM
Folder names in calibre library AlexBell Library Management 17 06-19-2014 05:49 PM
Customize Calibre Library Folder Structure and File Names mrgou Library Management 2 08-22-2012 05:55 AM
Can I change library folder names? lizzielou Library Management 2 01-23-2012 12:49 PM
Want to change folder structure or file names in the Calibre library? Manichean Library Management 0 01-30-2011 11:51 AM


All times are GMT -4. The time now is 01:57 PM.


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