Skip to content

Commit

Permalink
Add new args offset for illust_related()
Browse files Browse the repository at this point in the history
  • Loading branch information
upbit committed Jul 7, 2019
1 parent 1d163ec commit bafd1c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pixivpy3/aapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit bafd1c4

Please sign in to comment.