|
|
|
@ -310,17 +310,12 @@ def feed_languages(book_id):
|
|
|
|
|
return render_xml_template('feed.xml', entries=entries, pagination=pagination)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@opds.route("/opds/shelfindex") #, defaults={'public': 0})
|
|
|
|
|
# @opds.route("/opds/shelfindex/<string:public>")
|
|
|
|
|
@opds.route("/opds/shelfindex")
|
|
|
|
|
@requires_basic_auth_if_no_ano
|
|
|
|
|
def feed_shelfindex():
|
|
|
|
|
off = request.args.get("offset") or 0
|
|
|
|
|
# if public != 0:
|
|
|
|
|
shelf = g.shelves_access
|
|
|
|
|
number = len(shelf)
|
|
|
|
|
#else:
|
|
|
|
|
#shelf = g.user.shelf
|
|
|
|
|
# number = shelf.count()
|
|
|
|
|
pagination = Pagination((int(off) / (int(config.config_books_per_page)) + 1), config.config_books_per_page,
|
|
|
|
|
number)
|
|
|
|
|
return render_xml_template('feed.xml', listelements=shelf, folder='opds.feed_shelf', pagination=pagination)
|
|
|
|
|