Fix multiple bitrates not being uploaded to s3. Closes #40
This commit is contained in:
parent
34b3806806
commit
3e042866ec
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user