mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Set application version in generated LRF files as well.
This commit is contained in:
parent
4c4a5fe646
commit
be2304bd91
@ -52,6 +52,7 @@ from pylrf import (LrfWriter, LrfObject, LrfTag, LrfToc,
|
|||||||
DEFAULT_SOURCE_ENCODING = "cp1252" # defualt is us-windows character set
|
DEFAULT_SOURCE_ENCODING = "cp1252" # defualt is us-windows character set
|
||||||
DEFAULT_GENREADING = "fs" # default is yes to both lrf and lrs
|
DEFAULT_GENREADING = "fs" # default is yes to both lrf and lrs
|
||||||
|
|
||||||
|
from libprs500 import __appname__, __version__
|
||||||
|
|
||||||
class LrsError(Exception):
|
class LrsError(Exception):
|
||||||
pass
|
pass
|
||||||
@ -771,7 +772,7 @@ class DocInfo(object):
|
|||||||
self.language = "en"
|
self.language = "en"
|
||||||
self.creator = None
|
self.creator = None
|
||||||
self.creationdate = date.today().isoformat()
|
self.creationdate = date.today().isoformat()
|
||||||
self.producer = "libprs500"
|
self.producer = "%s v%s"%(__appname__, __version__)
|
||||||
self.numberofpages = "0"
|
self.numberofpages = "0"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user