Merge remote-tracking branch 'fixes/accessbp'

This commit is contained in:
Ozzie Isaacs
2026-04-15 19:31:29 +02:00

View File

@@ -1195,7 +1195,9 @@ def get_robots():
@viewer_required
def serve_book(book_id, book_format, anyname):
book_format = book_format.split(".")[0]
book = calibre_db.get_book(book_id)
book = calibre_db.get_filtered_book(book_id)
if not book:
return "File not in Database"
data = calibre_db.get_book_format(book_id, book_format.upper())
if not data:
return "File not in Database"