OPDS AllTitles Fix

This commit is contained in:
lordjay23 2017-11-20 21:44:21 -05:00 committed by evilhero
parent 7421ffb12d
commit 11b3ca3ff8
1 changed files with 2 additions and 2 deletions

View File

@ -222,10 +222,10 @@ class OPDS(object):
)
if len(entries) > (index + 30):
links.append(
getLink(href='%s?cmd=Publishers&index=%s' % (self.opdsroot, index+30), type='application/atom+xml; profile=opds-catalog; kind=navigation', rel='next'))
getLink(href='%s?cmd=AllTitles&index=%s' % (self.opdsroot, index+30), type='application/atom+xml; profile=opds-catalog; kind=navigation', rel='next'))
if index >= 30:
links.append(
getLink(href='%s?cmd=Publishers&index=%s' % (self.opdsroot, index-30), type='application/atom+xml; profile=opds-catalog; kind=navigation', rel='previous'))
getLink(href='%s?cmd=AllTitles&index=%s' % (self.opdsroot, index-30), type='application/atom+xml; profile=opds-catalog; kind=navigation', rel='previous'))
feed['links'] = links
feed['entries'] = entries[index:(index+30)]