From 1cb24045a00139c341223e2a7d90ea01335cd8ef Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 5 Jul 2022 23:45:47 +0200 Subject: [PATCH] dont thumb empty files --- copyparty/th_cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/copyparty/th_cli.py b/copyparty/th_cli.py index 9eb49a4f..33bc43b8 100644 --- a/copyparty/th_cli.py +++ b/copyparty/th_cli.py @@ -128,5 +128,8 @@ class ThumbCli(object): if abort: return None + if not bos.path.getsize(os.path.join(ptop, rem)): + return None + x = self.broker.ask("thumbsrv.get", ptop, rem, mtime, fmt) return x.get() # type: ignore