Skip to content

Commit

Permalink
fix: unknown variable
Browse files Browse the repository at this point in the history
  • Loading branch information
skymkmk committed Jul 27, 2023
1 parent 1f8a129 commit 51999ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion download.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ async def download() -> None:
cbz.config_info_xml(i[0], path)
file_list = [os.path.join(path, j) for j in os.listdir(path)
if os.path.isfile(os.path.join(path, j))]
with zipfile.ZipFile(file_path, 'w') as zf:
save_path = utils.truncate_path(path, f"{i[0]}-{i[3]}", spare_limit=4)
save_path += '.cbz'
with zipfile.ZipFile(save_path, 'w') as zf:
for file in file_list:
zf.write(file, os.path.split(file)[-1])
sql.update_gallery_success(i[0])
Expand Down

0 comments on commit 51999ed

Please sign in to comment.