summaryrefslogtreecommitdiffstats
path: root/gallery_dl/output.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/output.py')
-rw-r--r--gallery_dl/output.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/gallery_dl/output.py b/gallery_dl/output.py
index e7c66cf..3017f85 100644
--- a/gallery_dl/output.py
+++ b/gallery_dl/output.py
@@ -73,6 +73,12 @@ class PathfmtProxy():
pathfmt = object.__getattribute__(self, "job").pathfmt
return pathfmt.__dict__.get(name) if pathfmt else None
+ def __str__(self):
+ pathfmt = object.__getattribute__(self, "job").pathfmt
+ if pathfmt:
+ return pathfmt.path or pathfmt.directory
+ return ""
+
class KwdictProxy():
__slots__ = ("job",)