From bd91967d1b4314eb8648460aa13a62de0badc796 Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Tue, 23 Jan 2024 09:48:32 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Environment=20path=20variables,=20l?= =?UTF-8?q?ike=20'~'=20will=20get=20expanded=20and=20can=20now=20be=20used?= =?UTF-8?q?=20in=20settings.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/download.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tidal_dl_ng/download.py b/tidal_dl_ng/download.py index 863aa20..ab7824c 100644 --- a/tidal_dl_ng/download.py +++ b/tidal_dl_ng/download.py @@ -198,7 +198,9 @@ class Download: # Create file name and path file_name_relative = format_path_media(file_template, media) - path_file = os.path.abspath(os.path.normpath(os.path.join(self.path_base, file_name_relative))) + path_file = os.path.abspath( + os.path.normpath(os.path.join(os.path.expanduser(self.path_base), file_name_relative)) + ) # Populate StreamManifest for further download. if isinstance(media, Track):