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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-12-2018, 12:23 PM   #1
BlindSquirrel
Junior Member
BlindSquirrel began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2018
Device: ipad
File behavior when editing metadata

Hello folks...first post.

I notice that after I add a book, if I wish to edit the metadata, Calibre creates a new file in the library filesystem but also maintains the original file. Is there a way to have Calibre delete the old file when the new is created? It just seems to be creating a lot of unwanted additional files.

Last edited by BlindSquirrel; 10-12-2018 at 12:37 PM.
BlindSquirrel is offline   Reply With Quote
Old 10-12-2018, 12:46 PM   #2
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: 29,778
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Instead of using Add Books, set up a Auto Add folder.
Preferences: adding books: Automatic Adding (a tab). Then drop a new book into that folder.

But WAIT! What if something goes South?
The original (untouched) is now gone.
For a little effort, I can do a normal ADD, then move the files to an 'Archive' (USB connected HD) drive
theducks is offline   Reply With Quote
Advert
Old 10-12-2018, 01:29 PM   #3
BlindSquirrel
Junior Member
BlindSquirrel began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2018
Device: ipad
First, thanks for the response.

I think the behavior you're describing is something else. I'm perfectly fine with retaining my original ebook when Calibre adds the book into its own library. In fact, I don't want to delete that original file at all. This is after that. So this is what I do that is the source of the question...

1. Once the book has been added to the Calibre Library, I want to modify the metadata to include the results of the "download metadata" button, ads well as a couple of personal tags, so I go through that process.

2. I find that if the author name is different in the downloaded metadata (eg. "JK Rowling" vs "J. K. Rowling"), then Calibre updates the data for me in its library, which is fine, but it also creates a new folder under the modified author's name. So far, that's all fine and good.

3. If, after you complete this process, you go look in the filesystem Calibre is using for its books, you'll now find two entries, one under the old author name, one under the new. That's where I'd like to eliminate the redundancy.

Is that a thing, or do I just have to remember to go back into the filesystem and delete the old files and folder? Hope that makes sense; I'll make a video if it doesn't.

It strikes me that there would be one of two solutions to this problem, and I'm wondering if I'm just missing the appropriate ticky box that's somewhere in the configuration.

1. When metadata is updated, the original file and folder in the filesystem should be modified/overwritten with the result. or...

2. When editing metadata results in the creation of a new file/folder, we should have the option to delete the existing folder (the one that has been added to the library, not the original) as part of the process.

Last edited by BlindSquirrel; 10-12-2018 at 01:32 PM.
BlindSquirrel is offline   Reply With Quote
Old 10-12-2018, 01:42 PM   #4
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Calibre automatically deletes old folders once they're no longer in use.

Did you change the author name on all affected books? Because as long as you have at least one book that still uses the incorrect version, then Calibre will not delete the incorrect folder. Either that or the original folders/files may have been locked when Calibre was trying to delete them.
ilovejedd is offline   Reply With Quote
Old 10-12-2018, 02:11 PM   #5
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: 29,778
Karma: 54830978
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 ilovejedd View Post
Calibre automatically deletes old folders once they're no longer in use.

Did you change the author name on all affected books? Because as long as you have at least one book that still uses the incorrect version, then Calibre will not delete the incorrect folder. Either that or the original folders/files may have been locked when Calibre was trying to delete them.


A faster way for Authors:
1) The quality Check Plugin: a) Check Author initials, b)Fix Author initials
* Assumes you have configured the PI for your flavor

2)In the Tag Browser: a) Right click The Author: rename. b)right click any author: Manage: make your changes

either way adjusts all affected (and the unused folders should go UNLESS you have manually placed auxiliary (outside of Calibre) items in that folder
theducks is offline   Reply With Quote
Advert
Old 10-12-2018, 02:48 PM   #6
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Using Library Maintenance -> Check Library from the Library menu is a good idea at this point. After the first part of the check completes it then gives you the option to make sure that the files in your library match the contents of the database. That will detect any incorrect, left over folders.
jhowell is offline   Reply With Quote
Old 10-12-2018, 05:51 PM   #7
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: 20,550
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by BlindSquirrel View Post
<snip>

3. If, after you complete this process, you go look in the filesystem Calibre is using for its books, you'll now find two entries, one under the old author name, one under the new. That's where I'd like to eliminate the redundancy.

Is that a thing, or do I just have to remember to go back into the filesystem and delete the old files and folder? Hope that makes sense; I'll make a video if it doesn't.

<snip>
As post #4 says, what you describe shouldn't happen.
  • Which operating system and file system are you using?
  • Is the library located on a network device/service?
Do the Library Check, as advised in post#6.

BR

Last edited by BetterRed; 10-12-2018 at 06:43 PM.
BetterRed is online now   Reply With Quote
Old 10-12-2018, 06:30 PM   #8
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 8,552
Karma: 61120499
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Going on a hunch here, suspecting that there may be some sort of permissions issue going on here preventing the original from being deleted; I've seen similar issues with other applications that was attributed to this.

What operating system are you running?

EDIT: I tested my theory by opening a PDF file so it was locked in-use and attempting to change the author. Calibre told me it was unable to move the file location. So maybe I'm a little off on this.

Last edited by ownedbycats; 10-12-2018 at 07:03 PM.
ownedbycats is offline   Reply With Quote
Old 10-12-2018, 08:21 PM   #9
BlindSquirrel
Junior Member
BlindSquirrel began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2018
Device: ipad
I love this board! I'm still very much a Calibre rookie and there's a lot of great information here. I've left out a very important fact here that happens on EVERY metadata edit, without exception, so much so that it became background noise. Running Windows 10 by the way, and the library is on my Synology NAS, mapped as an M: Drive. The first save I try after editing metadata, I get this...

error (32, 'delete file', 'The process cannot access the file because it is being used by another process.')

Be gentle with me, I'm a rookie. But that might've been nice to tell you all at the beginning, eh? Sometimes I get that error 2 or even 3 times before it finally lets me save the thing.

Last edited by BlindSquirrel; 10-12-2018 at 08:26 PM.
BlindSquirrel is offline   Reply With Quote
Old 10-12-2018, 08:31 PM   #10
BlindSquirrel
Junior Member
BlindSquirrel began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2018
Device: ipad
A little more testing...

First, Calibre is installed locally on my desktop. Tried creating a local library, and leaving the source file on the NAS, got the same error. Same was true when I moved the source file locally and ran through the whole process with everything local. So it considers the file locked by some application in every case.
BlindSquirrel is offline   Reply With Quote
Old 10-12-2018, 09:17 PM   #11
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: 20,550
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Firstly you need to take heed of this ==>> I am getting errors with my calibre library on a networked drive/NAS?

Quote:
Do not put your calibre library on a networked drive.
But it still seems that something is locking library folders and/or files - Library Maintenance->Check library may give you an idea of what is being locked.

Try running in Safe Mode with no network and terminate as many other programs (AV, Encryptors, Indexers etc etc) as possible. And read the other FAQs, some have details of 3rd party are known to have caused problems.

BR
BetterRed is online now   Reply With Quote
Old 10-20-2018, 05:59 PM   #12
BlindSquirrel
Junior Member
BlindSquirrel began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2018
Device: ipad
Thanks very much for the check library idea...it has sufficiently solved the problem. I still don't know root cause (probably that I'm storing the Library on the NAS and will continue to do so), but this solution goes through and cleans up any leftover metadata/folders/files after I'm done, which is good enough for me.

With the proliferation of data locations out there these days, it surprises me that NAS-based libraries are not supported but I'm sure there's either a really good reason for that or the developers just haven't gotten round to it yet. Either way, I'm really very thankful for all of the great feedback on this thread.
BlindSquirrel is offline   Reply With Quote
Reply

Tags
metadata edit

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when editing metadata - Old file/folder can't get deleted Googa Library Management 2 08-16-2017 03:09 AM
Author Editing, Change in Behavior... Bug? WordMan Library Management 2 07-17-2017 10:20 PM
Odd editing behavior MerlinMama Editor 5 03-08-2017 12:40 PM
Locked File message when editing metadata madelonw Library Management 1 09-29-2013 06:17 PM
unexpected behavior when bulk editing curantil Calibre 1 06-07-2010 06:45 PM


All times are GMT -4. The time now is 08:28 PM.


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