Skip to content

Commit

Permalink
[postprocessor:metadata] call expand_path() on custom paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Feb 27, 2021
1 parent fe2ec9c commit 1bd3d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/postprocessor/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, job, options):
if directory:
self._directory = self._directory_custom
sep = os.sep + (os.altsep or "")
self._metadir = directory.rstrip(sep) + os.sep
self._metadir = util.expand_path(directory).rstrip(sep) + os.sep

filename = options.get("filename")
extfmt = options.get("extension-format")
Expand Down

0 comments on commit 1bd3d7c

Please sign in to comment.