From fa63e8fcbe72007790df6d145e3f4db7139d4b47 Mon Sep 17 00:00:00 2001 From: Wangchong Zhou Date: Thu, 26 Mar 2020 09:15:42 +0800 Subject: [PATCH] 2.022 zipfile larger than 2G --- xeHentai/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xeHentai/task.py b/xeHentai/task.py index 1e5cbd2..29b7fb3 100644 --- a/xeHentai/task.py +++ b/xeHentai/task.py @@ -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)):