![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31
Karma: 103134
Join Date: Feb 2010
Device: iPhone
|
Edit (programmatically) the Date header
The date header contains the date the book was added to the library. I would like to change this to the date the underling ebook was created )or failing that, copy the publishing date to the date) since after re-creating my library every book has the same date.
I have command line and scripting skills, and I'm willing to get into the sqlite3 database if that's the only answer, but if there is a better way, I'd rather do that, but while pubdate is editable in Calibre advanced edit, it appears that "Date" is not. (The reason is that some other tools that integrate with calibre use the date instead of the published date for sorting and classifying "new" books). Last edited by lbutlr; 04-08-2019 at 09:14 AM. Reason: clarification |
![]() |
![]() |
![]() |
#2 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
There are several ways to do what you ask.
[1] Date Added can be changed in single Edit Metadata. [2] Use Bulk Edit Metadata Search & Replace to copy a source date to a target date. [3] Import a CSV file to update whatever metadata columns you wish using the Job Spy plugin tool shown in the attached image. DaltonST Last edited by DaltonST; 04-08-2019 at 10:27 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,356
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
date is editable in calibre, both directly in the book list and via the edit metadata dialog.
|
![]() |
![]() |
![]() |
#4 | |||
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31
Karma: 103134
Join Date: Feb 2010
Device: iPhone
|
Quote:
Quote:
https://www.dropbox.com/s/jgc9pmaqqe...06.54.png?dl=0 Quote:
(I did dump the schemes for all the tables in the metadata.db and do not see where the DATE is stored, all I see in there is Pubdate) |
|||
![]() |
![]() |
![]() |
#5 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31
Karma: 103134
Join Date: Feb 2010
Device: iPhone
|
Quote:
Where is the date in the mysql database?is it the Timestamp field in books table? If so, that will mostly solve my problem as I can simply copy publishing date to timestamp and that will get me 90% of what I want. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Timestamp is Added.
SQLite not Mysql. Huge difference. |
![]() |
![]() |
![]() |
#7 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,730
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31
Karma: 103134
Join Date: Feb 2010
Device: iPhone
|
Difference, yes. HUGE difference? Eh. But yes, it was a thinko.
Anyway, I am mostly sorted, have copied the published date into the timestamp field and it's all good. Now, if I could figure out how to search for the original publication date for the work (not the date for the edition, so 1805 or whatever for Pride and Prejudice). <trundles off to do some searching> |
![]() |
![]() |
![]() |
#9 | |
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:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Programmatically set date added to calibre | bob.f | Library Management | 4 | 12-29-2017 04:01 PM |
Newbie: how to edit H1 Header | Phylis Sophical | Sigil | 17 | 11-11-2014 06:17 AM |
Edit metadata publish date for a date BC | RickLeFeuvre | Calibre | 2 | 08-28-2014 11:53 PM |
Programmatically reading mobi EXTH header | Limey | Kindle Formats | 13 | 07-25-2012 06:48 PM |
Edit Date? | mores | Calibre | 3 | 12-21-2008 04:31 PM |