Skip to content

Commit

Permalink
Merge pull request #28 from tosborne-slalom/feature/adding-n-param-to…
Browse files Browse the repository at this point in the history
…-fetch-articles

Added 'n' param to fetch_articles method
  • Loading branch information
Linusp authored Apr 25, 2024
2 parents 9959589 + 348c767 commit 349a1b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inoreader/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@ def __get_stream_contents(self, stream_id, continuation=""):
else:
return response["items"], None

def fetch_articles(self, folder=None, tags=None, unread=True, starred=False, limit=None):
def fetch_articles(self, folder=None, tags=None, unread=True, starred=False, limit=None, n=50):
self.check_token()

url = urljoin(BASE_URL, self.STREAM_CONTENTS_PATH)
if folder:
url = urljoin(url, quote_plus(self.GENERAL_TAG_TEMPLATE.format(folder)))

params = {"c": str(uuid4())}
params = {"n": n, "c": str(uuid4())}
if unread:
params["xt"] = self.READ_TAG

Expand Down

0 comments on commit 349a1b2

Please sign in to comment.