- commit
- 23e1eecc770ba32b9ae3be175933dee6af7cdd33
- parent
- 3179d1db47afea85b3ee7d9837b6008607611704
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2023-12-21 11:09
implement feed pagination
Diffstat
| M | plutopluto/__init__.py | 5 | +++++ |
1 files changed, 5 insertions, 0 deletions
diff --git a/plutopluto/__init__.py b/plutopluto/__init__.py
@@ -75,8 +75,13 @@ async def parse_feed(url): 75 75 d['content'] = thumbnail + d['content'] 76 76 return d 77 77 -1 78 links = {} -1 79 for link in feed.feed.get('links', []): -1 80 links[link['rel']] = link['href'] -1 81 78 82 return { 79 83 'url': url, -1 84 'next': links.get('next') or links.get('prev-archive'), 80 85 'entries': [_parse_item(i, item) for i, item in enumerate(feed.entries)], 81 86 } 82 87