1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-25 01:01:47 +00:00

OPDS Publisher Indexing

This commit is contained in:
DarkSir23 2017-11-01 10:31:13 -04:00 committed by evilhero
parent 2b040648bc
commit 83b33c0681
2 changed files with 3 additions and 3 deletions

View file

@ -25,7 +25,7 @@
<id>${entry['id']}</id>
<updated>${entry['updated']}</updated>
<content type="text">${entry['content']}</content>
<link href="${entry['href']}" type="application/atom+xml;profile=opds-catalog;kind=${entry['kind']}"/>
<link href="${entry['href']}" type="application/atom+xml; profile=opds-catalog; kind=${entry['kind']}"/>
%if 'thumbnail' in entry:
<link href="${entry['thumbnail']}" type="image/png" rel="http://opds-spec.org/image/thumbnail"/>
%endif

View file

@ -93,8 +93,8 @@ class OPDS(object):
feed['updated'] = mylar.helpers.now()
links = []
entries=[]
links.append(getLink(href='/opds',type='application/atom+xml;profile=opds-catalog;kind=navigation', rel='start', title='Home'))
links.append(getLink(href='/opds',type='application/atom+xml;profile=opds-catalog;kind=navigation',rel='self'))
links.append(getLink(href='/opds',type='application/atom+xml; profile=opds-catalog; kind=navigation', rel='start', title='Home'))
links.append(getLink(href='/opds',type='application/atom+xml; profile=opds-catalog; kind=navigation',rel='self'))
links.append(getLink(href='/opds?cmd=search', type='application/opensearchdescription+xml',rel='search',title='Search'))
publishers = myDB.select("SELECT ComicPublisher from comics GROUP BY ComicPublisher")
if len(publishers) > 0: