mirror of
https://github.com/9001/copyparty.git
synced 2026-11-24 16:22:34 +00:00
dont thumb empty files
This commit is contained in:
1 parent
622358b172
commit
1cb24045a0
1 file changed
+3
@@ -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
|
||||
Reference in new issue
Block a user