1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-24 16:51:42 +00:00

OPDS AllTitles Fix

This commit is contained in:
lordjay23 2017-11-20 21:44:21 -05:00 committed by evilhero
parent fc76303af4
commit c2cd9f44f3

View file

@ -261,10 +261,10 @@ class OPDS(object):
) )
if len(entries) > (index + 30): if len(entries) > (index + 30):
links.append( 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: if index >= 30:
links.append( 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['links'] = links
feed['entries'] = entries[index:(index+30)] feed['entries'] = entries[index:(index+30)]