![]() |
#1 |
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Locate newer books in library than on a device
Is there a way of determining what books are newer in the calibre library than what is on a device, either directly within Calibre or via a plugin? For example, I'd like to know if I've editted an epub in Calibre more recently than when that epub was sent to the device. Even something as basic as "last mod time of library format is newer than last mod time of device format".
I tried searching for a similar question but couldn't find it asked. Also I hope Calibre->Devices is the right (sub)forum. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,196
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Not automatically no. You would need to compare the last modified dates of the files in the calibre library to those on the device. calibre itself has no functionality to do that.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Thanks for your answer. Is this something that could possibly be done via a plugin? If so, might be time for this old C coder to learn some python!
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,196
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Sure, plugins can do pretty much anything. although I dont recall a lot of example plugins that talk to devices, maybe the reading list plugin is your best bet to start from.
|
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,249
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
I have a quick and (very) dirty calibre plugin which can do what you want. It is nowhere near polished enough to be an official community share but it may be of some help as a quick-start project if you are planning to dip your toes in calibre plugin/python waters. PM me if you decide to go ahead. Just a caveat, though, in case you aren't already aware ... Kobo make heavy use of the TOC when importing new books. If your epub edits have included changes to the TOC then simply overwriting the device's old epub/kepub with the calibre library's newly edited version will probably result in an unreadable book on the Kobo and you'll need to delete the old before re-sending the new. If you've only corrected things like typos, broken paragraphs, CSS, ... then a simple overwrite should be fine. I'm only guessing, but I suspect that if this inconvenient TOC business didn't exist then davidfor would have already included the feature you asked for in the calibre KoboTouch driver and/or the Kobo Utilities plugin. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Thanks Kovid, Jackie. I've sent Jackie a PM, lets see where that gets me to...
|
![]() |
![]() |
![]() |
#7 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,909
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Snark
![]() Why not just send the suspect books again? I have my Kobo set to Not treat the same title as New, therefore, it replaces what is there. Only if there are major (cleanup) edits, does the current reading position vary by much. FWIW I frequently despan those stupid- unnecessary spans that set "font-size to 1em and line-height: 1.2" That is the default ![]() |
![]() |
![]() |
![]() |
#8 | |||
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
|
Quote:
Quote:
Quote:
What I would see as useful is to be able to find all books added or modified since the previous time the device was connected. This is stored in the "driveinfo.calibre" file on the device. It gets read when the device is connected, but gets updated to the current time before the driver really gets to see it. It's buried just deep enough to make it hard to change, and there isn't really anything that currently uses it. |
|||
![]() |
![]() |
![]() |
#9 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,249
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Prepare to be underwhelmed. Intrigue-worthy it definitely isn't
![]() We had a very brief conversation about it a couple of years ago and you reminded me about the updated TOC issue. I realised at that point that the support issues would be endless (and repetitive), no matter how good the help notes and warnings were. I can't say I blame you for wiping it from your memory banks. ![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#10 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,860
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,336
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
For the adventurous: the base calibre device interface provides a method, synchronize_with_db(), that is called during device connection. It was added to support syncing by the wireless device driver (WD). This method supports a device:
For an example, see devices/interface.py, gui/devices.py, and devices/smart_device_app/driver.py. I admit that the code is complicated (sigh), and I am very willing to help if someone is interested. |
![]() |
![]() |
![]() |
#12 | ||||
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Thanks for the informal address, Ducks
![]() Quote:
I could have just re-sent everything that was on the Kobo, but that just didn't seem like the right solution... And let's not start on that my reading list is growing rather than shrinking ![]() Quote:
![]() Quote:
Quote:
![]() |
||||
![]() |
![]() |
![]() |
#13 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,336
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
{:'select(formats_modtimes('yyyy/MM/dd hh:mm:ss'), 'EPUB')'} Quote:
|
||
![]() |
![]() |
![]() |
#14 | ||
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,909
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I do wish Calibre had a way of displaying (when connected) WHAT THE the timestamp of the metadata.calibre was when first connected that session. Device was previously updated: yyyy/mm/dd:HH:mm Quote:
![]() |
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre cannot locate my library | Tipiford | Library Management | 4 | 03-24-2019 04:06 PM |
Locate library - on device or PC? | delaing | Library Management | 3 | 06-26-2014 05:11 PM |
Locate books with DRM in library? | daffy | Library Management | 4 | 08-18-2013 03:30 PM |
Cannot locate any books in Calibre | samanthalincoln | Devices | 1 | 07-19-2012 12:47 AM |
trying to locate books to read | JLYates | Reading Recommendations | 9 | 07-03-2010 05:19 AM |