mirror of
https://github.com/9001/copyparty.git
synced 2026-01-15 17:47:56 +10:00
dont thumb empty files
This commit is contained in:
@@ -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