From 5d7b8a1ef9d031daaa8645b80847d2b772a5902a Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Sat, 12 Sep 2020 06:57:42 +0000 Subject: [PATCH] Skip error entries in OPDS feed --- src/views/opds/title.xml.ecr | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/views/opds/title.xml.ecr b/src/views/opds/title.xml.ecr index 16ff3d0..392978c 100644 --- a/src/views/opds/title.xml.ecr +++ b/src/views/opds/title.xml.ecr @@ -21,18 +21,18 @@ <% end %> <% title.entries.each do |e| %> - - <%= HTML.escape(e.display_name) %> - urn:mango:<%= e.id %> + <% next if e.err_msg %> + + <%= HTML.escape(e.display_name) %> + urn:mango:<%= e.id %> - - + + - + - - - - <% end %> - - + + + + <% end %> +