07-27-2022, 10:25 AM | #1 |
Connoisseur
Posts: 51
Karma: 10
Join Date: Oct 2018
Device: none
|
Recover "Modified" column values after adding new coluns in library
Yesterday I added 3 columns to a library with 30K of books downloaded with the plugin FanFicFare. The problem is that after doing the restart that Calibre asked, the column "last_modified" for all the books was changed to yesterday date. So now I can't use that column to sort my books for last updated (or at last last changed).
There is some way to recover the original values of "last_modified" column? I do have backups of my library, but I was hoping to use them as a last resort. Also, Is changing the is the last_modified column to the current time the expected behavior when adding new columns to a library? Calibre v6.1.0 SO: Linux Mint 20.3 “Una” if that is the case, there is some way to add new columns to a library without changing the last_modified column? Thanks in advance. Last edited by John Maverick; 07-27-2022 at 10:37 AM. |
07-27-2022, 11:10 AM | #2 | ||
Bibliophagist
Posts: 36,952
Karma: 148318164
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Quote:
As for your last questions, yes that is the expected behaviour. You are modifying the library entry and that is reflected in the last modified date. If there is a way of adding columns without updating the last modified value, either chaley or kovidgoyal are likely the best people to answer that question. I suspect the answer will be no. |
||
Advert | |
|
07-27-2022, 11:17 AM | #3 |
Well trained by Cats
Posts: 29,997
Karma: 57259778
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Not really.
Last_modified changes any time the (book) record gets dirtied by a change. Any change. adding/removing a column affects all records. You can't even save the column value to another 'timestamp' column, because that activity changes things. Same goes for a restore attempt. If you want to track (manually), some action you did on a book, do that in a custom column. I do that when I make edits (style tweaks or typo fixes) |
07-27-2022, 11:34 AM | #4 | ||
Connoisseur
Posts: 51
Karma: 10
Join Date: Oct 2018
Device: none
|
Quote:
Quote:
Leaving aside the last_modified column who was working as expected. Is there a way to populate a custom column with the modified date of the epubs files of a library? At least I would want a new column with the last time the book was updated. Thanks for your answers. |
||
07-27-2022, 12:12 PM | #5 |
Well trained by Cats
Posts: 29,997
Karma: 57259778
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
<brainstorming> A whole lot of command line steps, if it was possible
dir *.epub /S /T:W >foo.log (Dir /? for what the switches do) Example of One EPUB book found (you search for each format desired) Code:
Directory of C:\Users\BigHD\Public2\MainLib\Odette C. Bell\Vira Episode One (17367)
06/21/20 06:21 252,997 Vira Episode One - Odette C. Bell.epub
1 File(s) 252,997 bytes
NEED I SAY BACK THINGS UP, This could go waaaay south if not done perfect Then use https://manual.calibre-ebook.com/gen...tml#set-custom to insert the timestamp into a custom column |
Advert | |
|
07-27-2022, 12:51 PM | #6 | |
Connoisseur
Posts: 51
Karma: 10
Join Date: Oct 2018
Device: none
|
Quote:
Another thing I thought if I restore the library from the backup I have. Is there a way to backup last_modified column to a external file or something? That way even when the last_modified is updated when I try to add the customs columns again I can import the values to one of the new custom columns. And again a lot of thanks for the idea. |
|
07-27-2022, 12:59 PM | #7 |
Well trained by Cats
Posts: 29,997
Karma: 57259778
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
last-modified gets triggered by so many things that I am not sure what will happen.
Just writing ANY data that affects that title (like a case change for a TAG also used in this book) will dirty the record and update metadata.opf stored with the book |
07-27-2022, 01:20 PM | #8 | |
Connoisseur
Posts: 51
Karma: 10
Join Date: Oct 2018
Device: none
|
Quote:
Again, a lot of thanks. |
|
07-27-2022, 04:13 PM | #9 | |
Well trained by Cats
Posts: 29,997
Karma: 57259778
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
BE CAREFULL, you can muck things really bad if you are not absolutly correct. BTW the commandline tools (calibredb.exe) can work with any LibraryDB specified and that deals with all the needed stuff. |
|
07-27-2022, 04:51 PM | #10 | |
Bibliophagist
Posts: 36,952
Karma: 148318164
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
07-27-2022, 05:31 PM | #11 | |
Connoisseur
Posts: 51
Karma: 10
Join Date: Oct 2018
Device: none
|
Quote:
@DNSB |
|
07-27-2022, 05:34 PM | #12 |
Custom User Title
Posts: 8,865
Karma: 62040409
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
For the future, check out the Last Modified plugin. It's a lot more customizable than the built-in one.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Column "Modified", 99% of my books have the same recent date in this column. | Pierre-Olivier | Library Management | 14 | 05-11-2020 03:24 AM |
"Tag" vs "adding new column" dilemma | peter0conor | Library Management | 8 | 05-05-2020 06:45 PM |
Custom Column Colors for "Text but with a fixed list of permitted values" | Skeeve | Calibre | 5 | 04-03-2014 01:44 PM |
Custom column: "Updated date", when adding new "versions" of the same file? | enriquep | Library Management | 16 | 11-03-2011 10:46 AM |