mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 03:23:47 +02:00
IGN:calibredb add pubdate to listable fields
This commit is contained in:
parent
36e90c8348
commit
e67c0db8cf
2 changed files with 3 additions and 2 deletions
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
FIELDS = set(['title', 'authors', 'author_sort', 'publisher', 'rating',
|
||||
'timestamp', 'size', 'tags', 'comments', 'series', 'series_index',
|
||||
'formats', 'isbn', 'uuid', 'cover'])
|
||||
'formats', 'isbn', 'uuid', 'pubdate', 'cover'])
|
||||
|
||||
XML_TEMPLATE = '''\
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
|
@ -38,6 +38,7 @@
|
|||
<publisher>${record['publisher']}</publisher>
|
||||
<rating>${record['rating']}</rating>
|
||||
<date>${record['timestamp']}</date>
|
||||
<pubdate>${record['pubdate']}</pubdate>
|
||||
<size>${record['size']}</size>
|
||||
<tags py:if="record['tags']">
|
||||
<py:for each="tag in record['tags']">
|
||||
|
|
|
|||
|
|
@ -1584,7 +1584,7 @@ def get_data_as_dict(self, prefix=None, authors_as_string=False):
|
|||
prefix = self.library_path
|
||||
FIELDS = set(['title', 'authors', 'author_sort', 'publisher', 'rating',
|
||||
'timestamp', 'size', 'tags', 'comments', 'series', 'series_index',
|
||||
'isbn', 'uuid'])
|
||||
'isbn', 'uuid', 'pubdate'])
|
||||
data = []
|
||||
for record in self.data:
|
||||
if record is None: continue
|
||||
|
|
|
|||
Loading…
Reference in a new issue