diff --git a/cps/db.py b/cps/db.py index b2ab257a..c4f95b3c 100644 --- a/cps/db.py +++ b/cps/db.py @@ -687,9 +687,7 @@ class CalibreDB(): limit_all = result_count ub.store_ids(result) - - - return result[offset:limit_all], result_count, pagination, + return result[offset:limit_all], result_count, pagination # Creates for all stored languages a translated speaking name in the array for the UI def speaking_language(self, languages=None): diff --git a/cps/opds.py b/cps/opds.py index ac0e103b..1eb3c49f 100644 --- a/cps/opds.py +++ b/cps/opds.py @@ -408,7 +408,7 @@ def get_metadata_calibre_companion(uuid, library): def feed_search(term): if term: - entries, __ = calibre_db.get_search_results(term) + entries, __, ___ = calibre_db.get_search_results(term) entriescount = len(entries) if len(entries) > 0 else 1 pagination = Pagination(1, entriescount, entriescount) return render_xml_template('feed.xml', searchterm=term, entries=entries, pagination=pagination)