cleanup subtitle
This commit is contained in:
parent
e78cab788f
commit
6c5fc9030a
1 changed files with 2 additions and 0 deletions
|
@ -642,5 +642,7 @@ def chop(video, start, end, subtitles=None):
|
||||||
p.wait()
|
p.wait()
|
||||||
f = open(choped_video, 'rb')
|
f = open(choped_video, 'rb')
|
||||||
os.unlink(choped_video)
|
os.unlink(choped_video)
|
||||||
|
if subtitles_f and os.path.exists(subtitles_f):
|
||||||
|
os.unlink(subtitles_f)
|
||||||
os.rmdir(tmp)
|
os.rmdir(tmp)
|
||||||
return f
|
return f
|
||||||
|
|
Loading…
Reference in a new issue