mirror of
https://github.com/evilhero/mylar
synced 2024-12-23 16:22:45 +00:00
OPDS AllTitles Fix
This commit is contained in:
parent
fc76303af4
commit
c2cd9f44f3
1 changed files with 2 additions and 2 deletions
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue