Skip to content

Commit

Permalink
'fixed:图片和名称错位'
Browse files Browse the repository at this point in the history
  • Loading branch information
gxcuizy committed Nov 7, 2018
1 parent b48ea20 commit 579f51c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 王者荣耀皮肤爬图/wzry.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ def get_hero_skin(self, hero_name, hero_no):
# 获取皮肤名称
img_names = skin_info.attrs['data-imgname']
name_list = img_names.split('|')
skin_no = len(name_list)
skin_no = 1
# 循环下载皮肤图片
for skin_name in name_list:
self.skin_detail_url = '%s/%s-bigskin-%s.jpg' % (hero_no, hero_no, skin_no)
skin_no -= 1
skin_no += 1
img_name = hero_name + '-' + skin_name + '.jpg'
self.download_skin(img_name)

Expand Down

0 comments on commit 579f51c

Please sign in to comment.