diff options
| author | 2025-04-15 05:25:44 -0400 | |
|---|---|---|
| committer | 2025-04-15 05:25:44 -0400 | |
| commit | 71c4f9dc93d81a2733a8ec8fe177e3db0e37d33b (patch) | |
| tree | 284174b9244e04f24ef1fadc5a8ef6980e7b5559 /gallery_dl/path.py | |
| parent | f13f90dc9ba67ad4a4a2b7a94d175186900b7d38 (diff) | |
| parent | b830dc03b3b7c9dd119648e1be9c1145d56e096c (diff) | |
Update upstream source from tag 'upstream/1.29.4'
Update to upstream version '1.29.4'
with Debian dir a15c4baddb14f9fd81eb2888aeeba8d3406c73f4
Diffstat (limited to 'gallery_dl/path.py')
| -rw-r--r-- | gallery_dl/path.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gallery_dl/path.py b/gallery_dl/path.py index 21e1aa0..54cf126 100644 --- a/gallery_dl/path.py +++ b/gallery_dl/path.py @@ -269,7 +269,7 @@ class PathFormat(): try: for fmt in self.directory_formatters: segment = fmt(kwdict).strip() - if strip and segment != "..": + if strip and segment not in {".", ".."}: # remove trailing dots and spaces (#647) segment = segment.rstrip(strip) if segment: |
