![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#4 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
|
Quote:
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... |
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#7 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,065
Karma: 858115
Join Date: Jan 2011
Device: Kobo Clara, Kindle Paperwhite 10
|
Quote:
Last edited by unboggling; 12-10-2013 at 11:25 PM. |
|
![]() |
![]() |
![]() |
#8 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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? |
![]() |
![]() |
![]() |
#9 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,065
Karma: 858115
Join Date: Jan 2011
Device: Kobo Clara, Kindle Paperwhite 10
|
Quote:
![]() Last edited by unboggling; 12-10-2013 at 11:40 PM. |
|
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#11 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,065
Karma: 858115
Join Date: Jan 2011
Device: Kobo Clara, Kindle Paperwhite 10
|
Quote:
![]() 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. |
|
![]() |
![]() |
![]() |
#12 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |