From bafd1c454b082dc97f07234142e41eab79334c6b Mon Sep 17 00:00:00 2001 From: Zhou Hao Date: Sun, 7 Jul 2019 11:03:36 +0800 Subject: [PATCH] Add new args offset for illust_related() --- pixivpy3/aapi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pixivpy3/aapi.py b/pixivpy3/aapi.py index 39464346..2b9aa29d 100644 --- a/pixivpy3/aapi.py +++ b/pixivpy3/aapi.py @@ -155,11 +155,12 @@ def illust_comments(self, illust_id, offset=None, include_total_comments=None, r return self.parse_result(r) # 相关作品列表 - def illust_related(self, illust_id, filter='for_ios', seed_illust_ids=None, req_auth=True): + def illust_related(self, illust_id, filter='for_ios', seed_illust_ids=None, offset=None, req_auth=True): url = '%s/v2/illust/related' % self.hosts params = { 'illust_id': illust_id, 'filter': filter, + 'offset': offset, } if type(seed_illust_ids) == str: params['seed_illust_ids[]'] = [seed_illust_ids]