From 78e2d1672e4301497f786cd03637de9ddbc717ac Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Mon, 17 Oct 2022 03:44:04 -0400 Subject: New upstream version 1.23.3. --- gallery_dl/path.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gallery_dl/path.py') diff --git a/gallery_dl/path.py b/gallery_dl/path.py index 84ee7af..28c07c3 100644 --- a/gallery_dl/path.py +++ b/gallery_dl/path.py @@ -105,6 +105,9 @@ class PathFormat(): strip = ". " self.strip = strip + if WINDOWS: + self.extended = config("path-extended", True) + basedir = extractor._parentdir if not basedir: basedir = config("base-directory") @@ -178,7 +181,7 @@ class PathFormat(): else: self.directory = directory = self.basedirectory - if WINDOWS: + if WINDOWS and self.extended: # Enable longer-than-260-character paths directory = os.path.abspath(directory) if directory.startswith("\\\\"): -- cgit v1.2.3