From 60c8e090dafc357a2e796850c10e7b7c4d023b3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 24 Aug 2019 23:07:12 +0200 Subject: [PATCH] [postprocessor:zip] fix archive names (closes #397) Remove the trailing path separator introduced in 3284c62 before adding the archive's filename extension. [ci skip] --- gallery_dl/postprocessor/zip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery_dl/postprocessor/zip.py b/gallery_dl/postprocessor/zip.py index 1075c706..6659a8de 100644 --- a/gallery_dl/postprocessor/zip.py +++ b/gallery_dl/postprocessor/zip.py @@ -34,7 +34,7 @@ class ZipPP(PostProcessor): algorithm = "store" self.path = pathfmt.realdirectory - args = (self.path + ext, "a", + args = (self.path[:-1] + ext, "a", self.COMPRESSION_ALGORITHMS[algorithm], True) if options.get("mode") == "safe":