Skip to content

Commit bafd1c4

Browse files
committed
Add new args offset for illust_related()
1 parent 1d163ec commit bafd1c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pixivpy3/aapi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,12 @@ def illust_comments(self, illust_id, offset=None, include_total_comments=None, r
155155
return self.parse_result(r)
156156

157157
# 相关作品列表
158-
def illust_related(self, illust_id, filter='for_ios', seed_illust_ids=None, req_auth=True):
158+
def illust_related(self, illust_id, filter='for_ios', seed_illust_ids=None, offset=None, req_auth=True):
159159
url = '%s/v2/illust/related' % self.hosts
160160
params = {
161161
'illust_id': illust_id,
162162
'filter': filter,
163+
'offset': offset,
163164
}
164165
if type(seed_illust_ids) == str:
165166
params['seed_illust_ids[]'] = [seed_illust_ids]

0 commit comments

Comments
 (0)