if ffmpeg -i .name.ass fails, then rm .name.ass
parent
8efffd0fe4
commit
9c0129f968
|
|
@ -56,6 +56,10 @@ func deport(ctx context.Context, p string) error {
|
|||
}
|
||||
|
||||
if err := ffmpeg(ctx, "-y", "-i", ass, srt); err != nil {
|
||||
if ctx.Err() == nil {
|
||||
log.Printf("ffmpeg failed to process %s; removing", ass)
|
||||
os.Remove(ass)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue