diff --git a/gallery_dl/path.py b/gallery_dl/path.py index efcacf6d..ea3cfb8d 100644 --- a/gallery_dl/path.py +++ b/gallery_dl/path.py @@ -218,6 +218,8 @@ class PathFormat(): if self.path[-1] == ".": self.path = self.path[:-1] self.temppath = self.realpath = self.realpath[:-1] + elif not self.path: + self.build_path() return True def build_filename(self, kwdict):