Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/opds.py
diff options
context:
space:
mode:
Diffstat (limited to 'opds.py')
-rw-r--r--opds.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/opds.py b/opds.py
index c40f896..29f829a 100644
--- a/opds.py
+++ b/opds.py
@@ -172,6 +172,17 @@ class Book(object):
ret = 'Unknown'
return ret
+ def get_summary(self):
+
+ if self._configuration is not None and 'summary_field' in self._configuration:
+ try:
+ ret = self._entry[self._configuration['summary_field']]
+ except KeyError:
+ ret = 'Unknown'
+ else:
+ ret = 'Unknown'
+ return ret
+
def get_object_id(self):
try:
ret = self._entry['object_id']