Skip to content

Commit

Permalink
[postprocessor:zip] fix archive names (closes #397)
Browse files Browse the repository at this point in the history
Remove the trailing path separator introduced in 3284c62 before
adding the archive's filename extension.

[ci skip]
  • Loading branch information
mikf committed Aug 24, 2019
1 parent 7c09545 commit 60c8e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/postprocessor/zip.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, pathfmt, options):
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":
Expand Down

0 comments on commit 60c8e09

Please sign in to comment.