1
0
mirror of https://github.com/janeczku/calibre-web.git synced 2024-11-24 08:42:24 +02:00

Fix opds search

This commit is contained in:
Ozzieisaacs 2020-10-10 12:53:10 +02:00
parent 52489a484a
commit e16c0caebb
2 changed files with 2 additions and 4 deletions

View File

@ -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):

View File

@ -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)