mirror of https://github.com/evilhero/mylar
OPDS AllTitles Fix
This commit is contained in:
parent
fc76303af4
commit
c2cd9f44f3
|
@ -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 New Issue