avoid windows funk

This commit is contained in:
ed 2022-09-21 08:25:44 +02:00
parent c5f41457bb
commit 47a1e6ddfa

View file

@ -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]