Refactor ipfs storage behind a standard interface
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
||||
"os/exec"
|
||||
"path"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func startFfmpeg(configuration Config) {
|
||||
@@ -37,13 +36,6 @@ func verifyError(e error) {
|
||||
}
|
||||
}
|
||||
|
||||
func generateRemotePlaylist(playlist string, gateway string, segments map[string]string) string {
|
||||
for local, remote := range segments {
|
||||
playlist = strings.ReplaceAll(playlist, local, gateway+remote)
|
||||
}
|
||||
return playlist
|
||||
}
|
||||
|
||||
func writePlaylist(data string, filePath string) {
|
||||
f, err := os.Create(filePath)
|
||||
defer f.Close()
|
||||
|
||||
Reference in New Issue
Block a user