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