Skip to content

Commit

Permalink
Recent file search #23 - list recent URL in OPDS feed in top page
Browse files Browse the repository at this point in the history
  • Loading branch information
clach04 committed Nov 11, 2023
1 parent d2bff30 commit a05d154
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion webook_opds_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,13 @@ def opds_root(environ, start_response):
<link rel="subsection" href="/file/" type="application/atom+xml;profile=opds-catalog;kind=acquisition" title="BROWSE"></link>
</entry>
<!-- TODO add search recent support -->
<entry>
<title>Recently added</title>
<link type="application/atom+xml;profile=opds-catalog;kind=acquisition" rel="http://opds-spec.org/sort/new" href="{WEBOOK_SELF_URL_PATH}/recent"/>
<updated>2023-08-28T15:54:14Z</updated>
<id>{WEBOOK_SELF_URL_PATH}/recent</id>
<content type="text">Find the latest books available</content>
</entry>
</feed>
'''.format(WEBOOK_SELF_URL_PATH=config['self_url_path'])
Expand Down

0 comments on commit a05d154

Please sign in to comment.