From 3e042866ec075f707dcdc5e6443b37816eb0aa69 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sun, 5 Jul 2020 22:03:53 -0700 Subject: [PATCH] Fix multiple bitrates not being uploaded to s3. Closes #40 --- core/core.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core.go b/core/core.go index 3849efc23..3fd4d6190 100644 --- a/core/core.go +++ b/core/core.go @@ -69,7 +69,7 @@ func resetDirectories() { os.Remove("webroot/thumbnail.jpg") // Create private hls data dirs - if len(config.Config.VideoSettings.StreamQualities) == 0 { + if len(config.Config.VideoSettings.StreamQualities) != 0 { for index := range config.Config.VideoSettings.StreamQualities { os.MkdirAll(path.Join(config.Config.PrivateHLSPath, strconv.Itoa(index)), 0777) os.MkdirAll(path.Join(config.Config.PublicHLSPath, strconv.Itoa(index)), 0777)