From 8c06e89aaf4f14e76e56ed3670f9fa56bd4e6c1e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 4 May 2025 09:59:22 +0530 Subject: [PATCH] Dont fail to generate OPDS acquisition feed for books without uuid --- src/calibre/srv/opds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/srv/opds.py b/src/calibre/srv/opds.py index 38cdbf00cd..23cdd364ab 100644 --- a/src/calibre/srv/opds.py +++ b/src/calibre/srv/opds.py @@ -212,7 +212,7 @@ def ACQUISITION_ENTRY(book_id, updated, request_context): extra.append(comments) if extra: extra = html_to_lxml('\n'.join(extra)) - ans = E.entry(TITLE(mi.title), E.author(E.name(authors_to_string(mi.authors))), ID('urn:uuid:' + mi.uuid), UPDATED(mi.last_modified), + ans = E.entry(TITLE(mi.title), E.author(E.name(authors_to_string(mi.authors))), ID('urn:uuid:' + (mi.uuid or '')), UPDATED(mi.last_modified), E.published(mi.timestamp.isoformat())) if mi.pubdate and not is_date_undefined(mi.pubdate): ans.append(ans.makeelement(f'{{{DC_NS}}}date'))