Helper tool for stitching together livestream VOD segments and uploading them to YouTube!

remove temporary files.txt after ffmpeg run

+6
+6
video/video.go
··· 3 3 import ( 4 4 "encoding/json" 5 5 "fmt" 6 + "log" 6 7 "os" 7 8 "path" 8 9 "strconv" ··· 62 63 63 64 if err != nil { 64 65 return 0, fmt.Errorf("ffmpeg error: %v", err) 66 + } 67 + 68 + if err = os.Remove(fileListPath); err != nil { 69 + log.Fatalf("Failed to remove temporary file list: %v", err) 70 + // not the end of the world; move along 65 71 } 66 72 67 73 fileInfo, err := os.Stat(video.Filename)