Skip to content

Commit

Permalink
Change image index to 3 digits
Browse files Browse the repository at this point in the history
  • Loading branch information
quantrancse committed Mar 26, 2020
1 parent e2e7f8e commit 33011fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/python/download_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def getImagePaths(self, chapter_dir_path, contents):
img_path_name = chapter_dir_path + '/image_' + img_name
else:
img_path_name = chapter_dir_path + \
'/image_' + str(image_index) + '.jpg'
'/image_' + "{0:0=3d}".format(image_index) + '.jpg'
img_path_list.append(img_path_name)
image_index += 1

Expand Down

0 comments on commit 33011fd

Please sign in to comment.