Some linter cleanup
This commit is contained in:
@@ -199,7 +199,7 @@ func GetHTTPListenAddress() string {
|
||||
log.Traceln(httpListenAddressKey, err)
|
||||
return config.GetDefaults().WebServerIP
|
||||
}
|
||||
return string(address)
|
||||
return address
|
||||
}
|
||||
|
||||
// SetHTTPListenAddress will set the server HTTP listen address.
|
||||
@@ -577,7 +577,7 @@ func FindHighestVideoQualityIndex(qualities []models.StreamOutputVariant) int {
|
||||
return indexedQualities[0].index
|
||||
}
|
||||
|
||||
// GetUsernameBlocklist will return the blocked usernames as a comma seperated string.
|
||||
// GetUsernameBlocklist will return the blocked usernames as a comma separated string.
|
||||
func GetUsernameBlocklist() string {
|
||||
usernameString, err := _datastore.GetString(blockedUsernamesKey)
|
||||
|
||||
@@ -589,7 +589,7 @@ func GetUsernameBlocklist() string {
|
||||
return usernameString
|
||||
}
|
||||
|
||||
// SetUsernameBlocklist set the username blocklist as a comma seperated string.
|
||||
// SetUsernameBlocklist set the username blocklist as a comma separated string.
|
||||
func SetUsernameBlocklist(usernames string) error {
|
||||
return _datastore.SetString(blockedUsernamesKey, usernames)
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ func SetStreamAsDisconnected() {
|
||||
}
|
||||
|
||||
variantPlaylist := playlist.(*m3u8.MediaPlaylist)
|
||||
if len(variantPlaylist.Segments) > int(data.GetStreamLatencyLevel().SegmentCount) {
|
||||
if len(variantPlaylist.Segments) > data.GetStreamLatencyLevel().SegmentCount {
|
||||
variantPlaylist.Segments = variantPlaylist.Segments[:len(variantPlaylist.Segments)]
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
// in the stream.
|
||||
func CleanupOldContent(baseDirectory string) {
|
||||
// Determine how many files we should keep on disk
|
||||
maxNumber := int(data.GetStreamLatencyLevel().SegmentCount)
|
||||
maxNumber := data.GetStreamLatencyLevel().SegmentCount
|
||||
buffer := 10
|
||||
|
||||
files, err := getAllFilesRecursive(baseDirectory)
|
||||
|
||||
Reference in New Issue
Block a user