Skip to content

Commit

Permalink
2.022 zipfile larger than 2G
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion committed Mar 26, 2020
1 parent c2c1b4d commit fa63e8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xeHentai/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def make_archive(self, remove=True):
arc = "%s.zip" % dpath
if os.path.exists(arc):
return arc
with zipfile.ZipFile(arc, 'w') as zipFile:
with zipfile.ZipFile(arc, 'w', allowZip64=True) as zipFile:
zipFile.comment = ("xeHentai Archiver v%s\nTitle:%s\nOriginal URL:%s" % (
__version__, self.meta['title'], self.url)).encode('utf-8')
for f in sorted(os.listdir(dpath)):
Expand Down

0 comments on commit fa63e8f

Please sign in to comment.