aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/path.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2022-10-17 03:44:04 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2022-10-17 03:44:04 -0400
commit78e2d1672e4301497f786cd03637de9ddbc717ac (patch)
treed74e3d9f54f1982c88feabe84f2804fc00beae5f /gallery_dl/path.py
parentb2d8a54ecf4157570d00a8b974a779766822bf4b (diff)
New upstream version 1.23.3.upstream/1.23.3
Diffstat (limited to 'gallery_dl/path.py')
-rw-r--r--gallery_dl/path.py5
1 files changed, 4 insertions, 1 deletions
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("\\\\"):