Fix opds search

pull/1659/head
Ozzieisaacs 4 years ago
parent 52489a484a
commit e16c0caebb

@ -687,9 +687,7 @@ class CalibreDB():
limit_all = result_count limit_all = result_count
ub.store_ids(result) 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 # Creates for all stored languages a translated speaking name in the array for the UI
def speaking_language(self, languages=None): def speaking_language(self, languages=None):

@ -408,7 +408,7 @@ def get_metadata_calibre_companion(uuid, library):
def feed_search(term): def feed_search(term):
if 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 entriescount = len(entries) if len(entries) > 0 else 1
pagination = Pagination(1, entriescount, entriescount) pagination = Pagination(1, entriescount, entriescount)
return render_xml_template('feed.xml', searchterm=term, entries=entries, pagination=pagination) return render_xml_template('feed.xml', searchterm=term, entries=entries, pagination=pagination)

Loading…
Cancel
Save