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 12-09-2013, 07:11 PM   #1
unboggling
Wizard
unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.
 
Posts: 1,065
Karma: 858115
Join Date: Jan 2011
Device: Kobo Clara, Kindle Paperwhite 10
Clarify Size & Date fields in library and device views?

I thought I'd ask, to check my assumptions:

Assumption 1: Size shows in both library view and device view, with the same lookup name {size}, so I assume the size data on device view is populated from the same field as in library view, rather than from the filesize on the device at connect-device. So if the size of file was changed on the device, calibre wouldn't know.

Assumption 2: Date {date} on library view (for when book is added) is different lookup name than Date {timestamp} on device view, so Date {timestamp} indicates when format was added to device, populated from data on the device at connect-device.

Are those assumptions true? Did I get any pieces wrong?

Last edited by unboggling; 12-09-2013 at 07:53 PM. Reason: clarify, add #3, delete #3.
unboggling is offline   Reply With Quote
Old 12-09-2013, 11:19 PM   #2
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
For the Kobo ereaders, the size displayed on the device list, should be the size on the device. You have the dates you correct. This might be different for other devices.
davidfor is offline   Reply With Quote
Advert
Old 12-09-2013, 11:34 PM   #3
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
I am pretty sure the metadata for device is handled independently. If the size depended on the size in calibre, any books NOT in your library wouldn't show any size in calibre at all.

The metadata is set in metadata.calibre, either when you send the book, or when the device is scanned for books not in the metadata.calibre, and once there, calibre doesn't assume a need to rescan for a changing size.

So calibre wouldn't know if the filesize changed, but only because it is populated from the book, at the time of indexing.

The date is likewise set at the time of indexing, and depends on when calibre sent it, or else when indexing found boks, the actual timestamp of the file.
eschwartz is offline   Reply With Quote
Old 12-10-2013, 03:53 AM   #4
aleyx
Addict
aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.
 
Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
Quote:
Originally Posted by eschwartz View Post
The metadata is set in metadata.calibre, either when you send the book, or when the device is scanned for books not in the metadata.calibre, and once there, calibre doesn't assume a need to rescan for a changing size.

So calibre wouldn't know if the filesize changed, but only because it is populated from the book, at the time of indexing
Yet Calibre knows whether the book exists in the library (in Device view) or on the Device (in Library view). This implies a common ID field between the two DB. At least for those books Calibre sent, obviously.

So another question is: are there ways to add more comparisons between the two DB? For example, given a book sent by Calibre on the device, is there a way to know whether it is up-to-date, by adding a calculated column in the Library view?

Periodicals and the FFDL plugin (and maybe Quality Check) would greatly benefit from this kind of feature. Actually, if the necessary hooks already exist and nobody else's on it, I'd be interested in coding a plugin...
aleyx is offline   Reply With Quote
Old 12-10-2013, 03:59 AM   #5
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: 45,198
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Book matching on the device is a many layered thing. First for books that calibre sends, it records the book uuid in metadata.calibre. If that does not exists, then metadata based matching is performed. You can run calibre ind ebug mode in which case the in library column shows how the matching was performed. You can also manually tell calibre a book on the device matches a book in the library by right clicking ont he bookint he device view.
kovidgoyal is offline   Reply With Quote
Advert
Old 12-10-2013, 06:56 PM   #6
unboggling
Wizard
unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.
 
Posts: 1,065
Karma: 858115
Join Date: Jan 2011
Device: Kobo Clara, Kindle Paperwhite 10
@davidfor & eschwartz, thanks, that clarified. @aleyx, thanks for commenting.

@kovid, thanks, that clarified. I'd never noticed in debug mode the uuid in the field inLibrary. And didn't understand what the menu command "match book" meant. But now it makes more sense to me.

@anyone, please evaluate these statements, are they true?:

In library view, Size (size) represents filesize of the largest format at the time book was added to library. Not editable. Adding or removing formats within calibre automatically recalculates it. But if user edits the format outside of calibre, size may not be accurate until the next time formats are added or removed in calibre or user resizes through Quality Check plugin. Usually accurate, but accuracy dependent on user.

In device view, Size (size) represents filesize of the format on device, whether sent there by calibre or not. Not editable by user. User could edit format on device (remote possibility). If calibre originally sent format to device, calibre matches by uuid and uses the filesize calibre remembers from before, not knowing about any device-side change of size; in that case, probably accurate unless user edited format outside of calibre. If calibre did not originally send format to device, filesize comes from the device; in that case, highly accurate. Accuracy depends on various factors, so interpret as approximation.

In library view, Date (date) represents when book was added to library. Accurate at that point. Editable by user. Subsequent accuracy depends on user.

In device view, Date (timestamp) represents when book was added to device, whether sent there by calibre or not. Not editable by user. Highly accurate.

(Not knowing exactly which fields are involved with the match book command in device view, I ignored those possibilities above. And I want to avoid parsing various conditional qualifiers out to infinite minute possibilities.)

Last edited by unboggling; 12-11-2013 at 12:42 AM.
unboggling is offline   Reply With Quote
Old 12-10-2013, 11:18 PM   #7
unboggling
Wizard
unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.
 
Posts: 1,065
Karma: 858115
Join Date: Jan 2011
Device: Kobo Clara, Kindle Paperwhite 10
Quote:
Originally Posted by kovidgoyal View Post
Book matching on the device is a many layered thing. First for books that calibre sends, it records the book uuid in metadata.calibre. If that does not exists, then metadata based matching is performed. You can run calibre ind ebug mode in which case the in library column shows how the matching was performed. You can also manually tell calibre a book on the device matches a book in the library by right clicking ont he bookint he device view.
I completed missed that "metadata-based matching" step earlier. So, if uuids differ, then in metadata matching: if sizes are different, does calibre choose the device's size value or the library's size value?

Last edited by unboggling; 12-10-2013 at 11:25 PM.
unboggling is offline   Reply With Quote
Old 12-10-2013, 11:23 PM   #8
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
I assume they always draw on the device size value, drawn from the actual file.

What point would there be in using the size in calibre?
eschwartz is offline   Reply With Quote
Old 12-10-2013, 11:31 PM   #9
unboggling
Wizard
unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.
 
Posts: 1,065
Karma: 858115
Join Date: Jan 2011
Device: Kobo Clara, Kindle Paperwhite 10
Quote:
Originally Posted by eschwartz View Post
I assume they always draw on the device size value, drawn from the actual file.

What point would there be in using the size in calibre?
I agree. I had originally assumed that too. But the goal is to check assumptions against reality and get rid of wrong assumptions. Assuming an assumption is really true often eventually gets me into trouble, if it's actually not true.

Last edited by unboggling; 12-10-2013 at 11:40 PM.
unboggling is offline   Reply With Quote
Old 12-10-2013, 11:33 PM   #10
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: 45,198
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
metadata matching is only performed on title and author, size plays no role. Since calibre updates metadata when sending to device, size is almost never going to match.
kovidgoyal is offline   Reply With Quote
Old 12-10-2013, 11:51 PM   #11
unboggling
Wizard
unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.
 
Posts: 1,065
Karma: 858115
Join Date: Jan 2011
Device: Kobo Clara, Kindle Paperwhite 10
Quote:
Originally Posted by kovidgoyal View Post
metadata matching is only performed on title and author, size plays no role. Since calibre updates metadata when sending to device, size is almost never going to match.
Ah. Thank you.

I'll just say in my metadata definitions that the size in Device View shows the size of the format on the device, to be interpreted as approximate.

Besides checking assumptions, I was curious and too lazy to go read the code through all calls and nooks and crannies, with limited understanding.

Last edited by unboggling; 12-11-2013 at 12:19 AM.
unboggling is offline   Reply With Quote
Old 12-13-2013, 10:57 PM   #12
unboggling
Wizard
unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.
 
Posts: 1,065
Karma: 858115
Join Date: Jan 2011
Device: Kobo Clara, Kindle Paperwhite 10
Thank you davidfor, eschwartz, aleyx, and Kovid for explaining about Device View columns. I finally woke up late one night with lightbulb realization that all of the Device View columns are automatically calculated representations for those fields pertaining to books on device, presented after automatic calibre decision making per various contingencies. Collections being the only potential user-editable column in Device View, under certain conditions with some specific devices. Confused by the lookup names, I had been seeing the trees and not the forest.

Last edited by unboggling; 12-13-2013 at 11:08 PM.
unboggling is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending selection from Search & Replace to different fields? MelBr Calibre 2 03-05-2013 01:00 PM
Parse one field to extract strings for multiple fields with S&R RotAnal Library Management 2 09-29-2012 10:13 AM
Plugboards help & Updating metadata from device to Library femgeek Library Management 6 07-26-2012 02:05 AM
Date Added column? Can I set date when book added to library? fitzhugh Calibre 4 06-03-2012 05:42 PM
Catalogs & Custom Fields nynaevelan Library Management 14 10-27-2010 04:55 PM


All times are GMT -4. The time now is 07:55 AM.


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