From e16c0caebb93244d3ad1d2482553cc84d762c089 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Sat, 10 Oct 2020 12:53:10 +0200 Subject: [PATCH] Fix opds search --- cps/db.py | 4 +--- cps/opds.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) 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)