diff --git a/cps/templates/feed.xml b/cps/templates/feed.xml index 6e5575c0..52499069 100644 --- a/cps/templates/feed.xml +++ b/cps/templates/feed.xml @@ -40,17 +40,14 @@ {% endfor %} {% if entry.comments[0] %}{{entry.comments[0].text|striptags}}{% endif %} {% if entry.has_cover %} - - + + + {% endif %} - {% for format in entry.data %} - {% else %} type="application/x-mobipocket-ebook"/> diff --git a/cps/templates/index.xml b/cps/templates/index.xml index 118f5481..dad1d449 100644 --- a/cps/templates/index.xml +++ b/cps/templates/index.xml @@ -1,24 +1,16 @@ urn:uuid:2853dacf-ed79-42f5-8e8a-a7bb3d1ae6a2 - + - - Calibre Web Calibre Web https://github.com/janeczku/calibre-web - - {{_('Hot Books')}} @@ -26,50 +18,38 @@ {{url_for('feed_hot')}} {{_('Popular publications from this catalog based on Rating.')}} - {{_('New Books')}} - + {{url_for('feed_new')}} {{_('The latest Books')}} - {{_('Random Books')}} - + {{url_for('feed_discover')}} {{_('Show Random Books')}} {{_('Authors')}} - + {{url_for('feed_authorindex')}} {{_('Books ordered by Author')}} {{_('Category list')}} - + {{url_for('feed_categoryindex')}} {{_('Books ordered by category')}} {{_('Series list')}} - + {{url_for('feed_seriesindex')}} {{_('Books ordered by series')}} diff --git a/cps/templates/osd.xml b/cps/templates/osd.xml index ddbb3e91..bbc227c4 100644 --- a/cps/templates/osd.xml +++ b/cps/templates/osd.xml @@ -1,18 +1,14 @@ - Calibre Web Calibre Web Calibre Web ebook catalog janeczku https://github.com/janeczku/calibre-web - - - open de-DE UTF-8 diff --git a/cps/web.py b/cps/web.py index e11c1ee6..7c22269d 100755 --- a/cps/web.py +++ b/cps/web.py @@ -452,7 +452,7 @@ def feed_search(): db.Books.authors.any(db.Authors.name.like("%" + term + "%")), db.Books.title.like("%" + term + "%"))).filter(filter).all() - xml = render_template('feed.xml', searchterm=term, entries=entries, Last_Updated=Last_Updated) + xml = render_template('feed.xml', searchterm=term, entries=entries) else: xml = render_template('feed.xml', searchterm="") response = make_response(xml)