Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Related Tools

Notices

Reply
 
Thread Tools Search this Thread
Old 09-02-2016, 12:57 AM   #1
cedhax
Addict
cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.
 
Posts: 282
Karma: 1546488
Join Date: Jan 2016
Device: ipad
OPDS Content Server to provide last modification date

It seems that the OPDS Content Server of Calibre does not provide the modified date of each book in its generated XML files, while the HTML Content Server does provide it in its generated HTML files. Is there a way to fix this?

For the motivation for this request, please see this post, which is a reply from the developer of MapleRead to one of its users. Since I haven't seen a post by glenm125 on this issue yet, I'm doing it as another user who is also interested in the same question.
cedhax is offline   Reply With Quote
Old 09-02-2016, 01:11 AM   #2
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: 44,075
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You want a last modified date for the individual e-book files or the overall book metadata? In which OPDS feed, the acquisition feed? In what format?
kovidgoyal is online now   Reply With Quote
Advert
Old 09-03-2016, 02:19 AM   #3
cedhax
Addict
cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.
 
Posts: 282
Karma: 1546488
Join Date: Jan 2016
Device: ipad
As a user, I think a last modified date for an e-book file itself and a last modified date for its metadata are both useful. As for the specific XML syntax required, I'd rather leave it to you and sbaylor, the MapleRead developer, to whom I have just left a message there.
cedhax is offline   Reply With Quote
Old 09-03-2016, 11:07 AM   #4
mattcurtis
Book Lover, Dev of Hyphen
mattcurtis ought to be getting tired of karma fortunes by now.mattcurtis ought to be getting tired of karma fortunes by now.mattcurtis ought to be getting tired of karma fortunes by now.mattcurtis ought to be getting tired of karma fortunes by now.mattcurtis ought to be getting tired of karma fortunes by now.mattcurtis ought to be getting tired of karma fortunes by now.mattcurtis ought to be getting tired of karma fortunes by now.mattcurtis ought to be getting tired of karma fortunes by now.mattcurtis ought to be getting tired of karma fortunes by now.mattcurtis ought to be getting tired of karma fortunes by now.mattcurtis ought to be getting tired of karma fortunes by now.
 
mattcurtis's Avatar
 
Posts: 59
Karma: 2013886
Join Date: Apr 2013
Device: iPhone (Hyphen)
Quote:
Originally Posted by kovidgoyal View Post
You want a last modified date for the individual e-book files or the overall book metadata? In which OPDS feed, the acquisition feed? In what format?
In the OPDS feed perhaps on a global basis, with a date element indicating last modified file date & last modified metadata date of any book. This would be useful for determining if anything had changed since the feed was last checked, and when it changed.

As for the Acquisition Feed, it would be great if each entry had the same as above, file date modified & metadata modified, with a bonus: file hashes! MD5 preferably. Would be incredibly useful for comparing files.

Bonus question: Exactly what does Calibre base the existing <updated /> elements for feed and entry on now?
mattcurtis is offline   Reply With Quote
Old 09-03-2016, 01:44 PM   #5
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: 44,075
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It's a long time since I looked at OPDS (the JSON APIs are much better for integrating with the calibre server), however, IIRC <updated> is the last modified date of metadata.db i.e. the entire calibre library.
kovidgoyal is online now   Reply With Quote
Advert
Old 09-03-2016, 02:09 PM   #6
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: 44,075
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...fc7e06cdbbe13a
kovidgoyal is online now   Reply With Quote
Old 09-03-2016, 02:30 PM   #7
glenm125
Member
glenm125 began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Aug 2016
Device: iPad and Android smartphone
First, thanks for cedhax for posting this thread in response to my original comment elsewhere.

Quote:
Originally Posted by kovidgoyal View Post
You want a last modified date for the individual e-book files or the overall book metadata? In which OPDS feed, the acquisition feed? In what format?
I'm not expert in the OPDS format nor nomenclature, so let me instead describe from a user point of view what I want to achieve.

Part of what I read in Calibre and related readers is fanfiction. As authors extend those stories with new chapters, I use fanficfare to generate epubs from content of those sites into my calibre library. I presume this updates the metadata (file size, date, 'completed' tag, etc), perhaps also updating author (if author changed his name, not an uncommon thing!). As well of course as replacing the epubs.

Whether a new version or not has come, I might have also updated the metadata, eg with a rating or additional tags.

So it would seem to me that it would be useful to have latest updated date for metadata, and latest updated date for each file, assuming the OPDS format supports both. That provides most visibility into change in downstream tools.

This would allow a reader application to know when to merge metadata changes in, and whether to flag a book (otherwise thought to be read in the client) as now unread (because it has changed). And even show how much longer the book is compared to the read content (new content length less length when last read).

But again, I'm not expert in the formats or established usage paradigms of this content. Library and reader authors should probably comment on what would help them most.

Hope this helps,

glen
glenm125 is offline   Reply With Quote
Old 09-06-2016, 10:13 PM   #8
sbaylor
Addict
sbaylor does all things with Zen-like beautysbaylor does all things with Zen-like beautysbaylor does all things with Zen-like beautysbaylor does all things with Zen-like beautysbaylor does all things with Zen-like beautysbaylor does all things with Zen-like beautysbaylor does all things with Zen-like beautysbaylor does all things with Zen-like beautysbaylor does all things with Zen-like beautysbaylor does all things with Zen-like beautysbaylor does all things with Zen-like beauty
 
sbaylor's Avatar
 
Posts: 218
Karma: 32081
Join Date: Dec 2015
Location: USA
Device: iPad, iPad mini, iPhone
Quote:
Originally Posted by kovidgoyal View Post
Thanks! The changes look great. The ball is in my court now.
sbaylor is offline   Reply With Quote
Old 09-13-2016, 02:33 AM   #9
cedhax
Addict
cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.cedhax ought to be getting tired of karma fortunes by now.
 
Posts: 282
Karma: 1546488
Join Date: Jan 2016
Device: ipad
@kovidgoyal - The OPDS Content Server is broken in calibre 2.67 (latest version). On pressing "By Newest", or "By Title", etc., it returns the following error message.

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.
-------------------------------------
Powered by CherryPy 3.2.2


Note that previous versions of calibre are ok.
cedhax is offline   Reply With Quote
Old 09-13-2016, 07:11 AM   #10
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,812
Karma: 7030035
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by cedhax View Post
@kovidgoyal - The OPDS Content Server is broken in calibre 2.67 (latest version). On pressing "By Newest", or "By Title", etc., it returns the following error message.

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.
-------------------------------------
Powered by CherryPy 3.2.2


Note that previous versions of calibre are ok.
See https://www.mobileread.com/forums/sho...d.php?t=278278
chaley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calibre-server OPDS catalog - manual move to web server HaakonME Related Tools 5 09-21-2012 03:11 AM
content server and publication date gprichardson1 Calibre 1 02-10-2011 02:14 PM
Automatic date of modification and creation paulpeer Sigil 6 04-05-2010 11:15 AM


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


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