MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Library Management (https://www.mobileread.com/forums/forumdisplay.php?f=236)
-   -   Reload file size (https://www.mobileread.com/forums/showthread.php?t=127179)

ptom 03-27-2011 06:07 AM

Reload file size
 
Is there a way to reload the file size, calibre shows, after changing the particular file? I have some old review papers and did ocr + reduce their file size considerably recently. So I replaced the files directly in the calibre library (the only thing that changed is the filesize). But I see no way to tell calibre to reload this particular entry, without having to import all those paper/books once again. When dragging the new file into the old metadata entry it seems to mess up things pretty badly^^.

DoctorOhh 03-27-2011 06:32 AM

Quote:

Originally Posted by ptom (Post 1464278)
Is there a way to reload the file size, calibre shows, after changing the particular file? I have some old review papers and did ocr + reduce their file size considerably recently.

I think the file size is based on the largest file for a particular entry. Did you try restarting calibre?

Quote:

Originally Posted by ptom (Post 1464278)
When dragging the new file into the old metadata entry it seems to mess up things pretty badly^^.

Dragging a new/revised file to the Edit Metadata available formats area is the correct way to update any formats and (as of 0.7.52) should not be capable of messing things up. Although just writing over the file as you did will also work fine.

Good Luck.

kiwidude 03-27-2011 06:45 AM

This was a feature I was thinking of adding to the QualityCheck plugin. Something like "Check and fix file sizes". If anyone thinks they would use it let me know.

Personally I don't even bother showing the file size column, apart from having no interest in it the column is relatively meaningless when you have multiple formats for a book. But clearly there are other people out there who are jumping through hoops trying to get it up to date after directly editing or replacing their books.

DoctorOhh 03-27-2011 06:58 AM

I hide this column too.

ptom 03-27-2011 08:53 AM

No, restarting calibre had no effect at all and dragging the new file into the metadata entry somehow corrupted the .pdf (the pdf had afterwards a filesize of 0 kB and couldn't be opened anymore).
It's not really a crucial feature for me either, I was just wondering, since it might have been handy to sort out the biggest (scanned) scripts/books/whatsoever for a portable version (since some of the scanned lecture notes and so on have >100mB before optimizing file size).

So yes, I'd be interested in this new feature in the QualityCheck plugin,maybe there are some other ones as well.

And thanks for your help so far

Manichean 03-27-2011 09:26 AM

Quote:

Originally Posted by ptom (Post 1464418)
No, restarting calibre had no effect at all and dragging the new file into the metadata entry somehow corrupted the .pdf (the pdf had afterwards a filesize of 0 kB and couldn't be opened anymore).

You're running a pre-0.7.51 version of Calibre and dragging the file out of its location in the library folder into the metadata formats field, right? That bug was discovered recently and fixed in the latest release. You'll need to drag the file from somewhere not in the library folder.

DoctorOhh 03-27-2011 10:21 AM

Quote:

Originally Posted by ptom (Post 1464418)
No, restarting calibre had no effect at all and dragging the new file into the metadata entry somehow corrupted the .pdf (the pdf had afterwards a filesize of 0 kB and couldn't be opened anymore).

This was fixed in 0.7.51. I tested this fix and it will ignore any drag and drop from the library folder onto itself. The concept of dragging from the library folder to the formats windows to add a file that is already there is just wrong. I honestly am at a loss in understanding this move. You can't do it at the OS level and now calibre will save you from yourself too.

The formats window is for adding new formats or replacing old formats like pdf epub etc.. from outside the library/database.

Try the following. Save your updated pdf to your desktop, remove the pdf from the library via the Edit metadata window available formats area (recycle icon), Drag your pdf from the desktop to the Edit metadata window available formats area.

Quote:

Originally Posted by ptom (Post 1464418)
So yes, I'd be interested in this new feature in the QualityCheck plugin,maybe there are some other ones as well.

It sounds like this would be a great feature for you.

ptom 03-27-2011 10:22 AM

I see, ok, gonna have to give this a try as soon as I'm back home

kiwidude 03-27-2011 11:17 AM

I've updated the Quality Check plugin to add this feature so feel free to give that option a go if you like.

theducks 03-27-2011 11:31 AM

I hide the column, since I keep many formats, and it rarely represents the one I currently use.

:bulb2: If you 'hover' over a format in the Metadata editor, Balloon help floats up with info about the file

ptom 03-28-2011 03:10 PM

Great, thanks for the new plugin feature. It really did a well job for me!


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

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.