From 1bd3d7cfb0eb5fe6d525f2ac5993117aca7e8c67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 27 Feb 2021 17:19:29 +0100 Subject: [PATCH] [postprocessor:metadata] call expand_path() on custom paths (#1299) --- gallery_dl/postprocessor/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery_dl/postprocessor/metadata.py b/gallery_dl/postprocessor/metadata.py index 91cbca99de8..49696a02819 100644 --- a/gallery_dl/postprocessor/metadata.py +++ b/gallery_dl/postprocessor/metadata.py @@ -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")