cleanup subtitle

This commit is contained in:
j 2018-10-30 17:22:08 +01:00
parent e78cab788f
commit 6c5fc9030a

View file

@ -642,5 +642,7 @@ def chop(video, start, end, subtitles=None):
p.wait()
f = open(choped_video, 'rb')
os.unlink(choped_video)
if subtitles_f and os.path.exists(subtitles_f):
os.unlink(subtitles_f)
os.rmdir(tmp)
return f