OPDS AllTitles Fix

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

View File

@ -261,10 +261,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)]