Fix multiple bitrates not being uploaded to s3. Closes #40

This commit is contained in:
Gabe Kangas 2020-07-05 22:03:53 -07:00
parent 34b3806806
commit 3e042866ec

View file

@ -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)