From fec37c50f012b05479ed71650a2338e12c4fa9fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 16 Aug 2025 15:50:48 +0200 Subject: [PATCH] fix accessing methods through 'path-metadata' pathfmt proxy (#6582) https://github.com/mikf/gallery-dl/issues/6582#issuecomment-3193498152 --- gallery_dl/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery_dl/output.py b/gallery_dl/output.py index 519a8f4c..9e0888bd 100644 --- a/gallery_dl/output.py +++ b/gallery_dl/output.py @@ -118,7 +118,7 @@ class PathfmtProxy(): def __getattribute__(self, name): pathfmt = object.__getattribute__(self, "job").pathfmt - return pathfmt.__dict__.get(name) if pathfmt else None + return getattr(pathfmt, name, None) if pathfmt else None def __str__(self): if pathfmt := object.__getattribute__(self, "job").pathfmt: