cleanup subtitle

This commit is contained in:
j 2018-10-30 17:22:08 +01:00
parent e78cab788f
commit 6c5fc9030a
1 changed files with 2 additions and 0 deletions

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