✨ Environment path variables, like '~' will get expanded and can now be used in settings.

This commit is contained in:
Robert Honz
2024-01-23 09:48:32 +01:00
parent a348909897
commit bd91967d1b
+3 -1
View File
@@ -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):