mirror of
https://github.com/9001/copyparty.git
synced 2026-11-21 00:46:34 +00:00
avoid windows funk
This commit is contained in:
1 parent
c5f41457bb
commit
47a1e6ddfa
1 file changed
+6
@@ -274,6 +274,12 @@ class ThumbSrv(object):
|
||||
if getattr(ex, "returncode", 0) != 321:
|
||||
with open(tpath, "wb") as _:
|
||||
pass
|
||||
else:
|
||||
# ffmpeg may spawn empty files on windows
|
||||
try:
|
||||
os.unlink(tpath)
|
||||
except:
|
||||
pass
|
||||
|
||||
with self.mutex:
|
||||
subs = self.busy[tpath]
|
||||
|
||||
Reference in new issue
Block a user