diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index f206de24..0b27ad02 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -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