Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 04-08-2019, 09:07 AM   #1
lbutlr
Enthusiast
lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.
 
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
lbutlr is offline   Reply With Quote
Old 04-08-2019, 10:24 AM   #2
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
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
Attached Thumbnails
Click image for larger version

Name:	2019-03-25 12_34_13-JS+ GUI Tool_  Import CSV File to Update Metadata.jpg
Views:	82
Size:	182.8 KB
ID:	170617  

Last edited by DaltonST; 04-08-2019 at 10:27 AM.
DaltonST is offline   Reply With Quote
Advert
Old 04-08-2019, 10:27 AM   #3
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,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.
kovidgoyal is offline   Reply With Quote
Old 04-08-2019, 12:07 PM   #4
lbutlr
Enthusiast
lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.
 
Posts: 31
Karma: 103134
Join Date: Feb 2010
Device: iPhone
Quote:
Originally Posted by DaltonST View Post
There are several ways to do what you ask.

[1] Date Added can be changed in single Edit Metadata.
Yes, but I want to update ALL records, not one at a time.

Quote:
Originally Posted by DaltonST View Post
[2] Use Bulk Edit Metadata Search & Replace to copy a source date to a target date.
Not possible in the advanced search, the "copy to field" does not list date as an option.

https://www.dropbox.com/s/jgc9pmaqqe...06.54.png?dl=0

Quote:
Originally Posted by DaltonST View Post
[3] Import a CSV file to update whatever metadata columns you wish using the Job Spy plugin tool shown in the attached image.
I'll take a look at that, didn't know about that.

(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)
lbutlr is offline   Reply With Quote
Old 04-08-2019, 12:12 PM   #5
lbutlr
Enthusiast
lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.
 
Posts: 31
Karma: 103134
Join Date: Feb 2010
Device: iPhone
Quote:
Originally Posted by kovidgoyal View Post
date is editable in calibre, both directly in the book list and via the edit metadata dialog.
But not in the advanced editing, and there is no way to change many, only to change one at a time.

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.
lbutlr is offline   Reply With Quote
Advert
Old 04-08-2019, 12:26 PM   #6
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Timestamp is Added.

SQLite not Mysql. Huge difference.
DaltonST is offline   Reply With Quote
Old 04-08-2019, 04:34 PM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,730
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by lbutlr View Post
Where is the date in the mysql database?is it the Timestamp field in books table?
Yes

FWIW: I clear it at add time so that I can use it to store date I read the book.

BR
BetterRed is offline   Reply With Quote
Old 04-08-2019, 05:20 PM   #8
lbutlr
Enthusiast
lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.lbutlr is cognizant of many things which escape those who dream only by night.
 
Posts: 31
Karma: 103134
Join Date: Feb 2010
Device: iPhone
Quote:
Originally Posted by DaltonST View Post
Timestamp is Added.

SQLite not Mysql. Huge difference.
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>
lbutlr is offline   Reply With Quote
Old 04-08-2019, 07:54 PM   #9
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
Quote:
Originally Posted by lbutlr View Post
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).
Some of the metadata source plugins will get the original publishing date if the source site has it. The Goodreads plugin will and I think that Fantastic Fiction does.
davidfor is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 03:09 AM.


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