From b3f7556096ea235be1b127e49504e67b49dfda9f Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Wed, 1 Sep 2021 22:16:29 +0400 Subject: [PATCH] Added partial entries feed to the OPDS root feed --- src/server/internalServer_catalog_v2.cpp | 1 + static/templates/catalog_v2_root.xml | 9 +++++++++ test/server.cpp | 9 +++++++++ 3 files changed, 19 insertions(+) diff --git a/src/server/internalServer_catalog_v2.cpp b/src/server/internalServer_catalog_v2.cpp index 88a3f64e..7e49f76e 100644 --- a/src/server/internalServer_catalog_v2.cpp +++ b/src/server/internalServer_catalog_v2.cpp @@ -81,6 +81,7 @@ std::unique_ptr InternalServer::handle_catalog_v2_root(const RequestCo {"endpoint_root", m_root + "/catalog/v2"}, {"feed_id", gen_uuid(m_library_id)}, {"all_entries_feed_id", gen_uuid(m_library_id + "/entries")}, + {"partial_entries_feed_id", gen_uuid(m_library_id + "/partial_entries")}, {"category_list_feed_id", gen_uuid(m_library_id + "/categories")}, {"language_list_feed_id", gen_uuid(m_library_id + "/languages")} }, diff --git a/static/templates/catalog_v2_root.xml b/static/templates/catalog_v2_root.xml index 9aec1cba..b10c8d83 100644 --- a/static/templates/catalog_v2_root.xml +++ b/static/templates/catalog_v2_root.xml @@ -23,6 +23,15 @@ {{all_entries_feed_id}} All entries from this catalog. + + All entries (partial) + + {{date}} + {{partial_entries_feed_id}} + All entries from this catalog in partial format. + List of categories 12345678-90ab-cdef-1234-567890abcdef All entries from this catalog. + + All entries (partial) + + YYYY-MM-DDThh:mm:ssZ + 12345678-90ab-cdef-1234-567890abcdef + All entries from this catalog in partial format. + List of categories