From 14af136fcdff8e5dcfe09ef0368e39fc7c25ca2f Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 21 Feb 2024 19:19:30 +0000 Subject: [PATCH] force generic "folder" icon when image-thumbs are disabled fixes the "unk" that would be shown if a subfolder contains images --- copyparty/httpcli.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 643c7cf5..6c9f1698 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -3794,9 +3794,12 @@ class HttpCli(object): if self.can_read: th_fmt = self.uparam.get("th") if th_fmt is not None: + nothumb = "dthumb" in dbv.flags if is_dir: vrem = vrem.rstrip("/") - if icur and vrem: + if nothumb: + pass + elif icur and vrem: q = "select fn from cv where rd=? and dn=?" crd, cdn = vrem.rsplit("/", 1) if "/" in vrem else ("", vrem) # no mojibake support: @@ -3822,7 +3825,7 @@ class HttpCli(object): return self.tx_ico("a.folder") thp = None - if self.thumbcli: + if self.thumbcli and not nothumb: thp = self.thumbcli.get(dbv, vrem, int(st.st_mtime), th_fmt) if thp: