mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Store book metadata and nb of pages in new settings
They may already be available (with other statistics stuff) under the 'stats' key, but not if Statistics plugin is disabled. As this plugin may be migrated to SQLite, readerui and readerfooter will now set two new properties: doc_props (containing all and only the metadata returned by document:getDocumentProps()) and doc_pages (updated by readerfooter on any display or font change). PDF document: returns additional PDF properties: Keywords and Subject (as Description).
This commit is contained in:
@@ -174,6 +174,8 @@ function PdfDocument:getProps()
|
||||
props.authors = props.author
|
||||
props.series = ""
|
||||
props.language = ""
|
||||
props.keywords = props.keywords
|
||||
props.description = props.subject
|
||||
return props
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user