Schedule can be deactivated

This commit is contained in:
marmei
2020-06-03 23:11:25 +02:00
parent 38333d65cb
commit d8fc1aea97
6 changed files with 228 additions and 136 deletions

View File

@@ -231,7 +231,7 @@ func StartSystem(updateProviderFiles bool) (err error) {
showInfo(fmt.Sprintf("Tuner (Plex / Emby):%d", Settings.Tuner))
showInfo(fmt.Sprintf("EPG Source:%s", Settings.EpgSource))
showInfo(fmt.Sprintf("Plex Channel Limit:%d", System.PlexChannelLimit))
showInfo(fmt.Sprintf("Unfiltered Channel Limit:%d", System.UnfilteredChannelLimit))
showInfo(fmt.Sprintf("Unfiltered Chan. Limit:%d", System.UnfilteredChannelLimit))
// Providerdaten aktualisieren
if len(Settings.Files.M3U) > 0 && Settings.FilesUpdate == true || updateProviderFiles == true {

View File

@@ -40,7 +40,7 @@ func updateServerSettings(request RequestStruct) (settings SettingsStruct, err e
case "update":
// Leerzeichen aus den Werten entfernen und Formatierung der Uhrzeit überprüfen (0000 - 2359)
var newUpdateTimes []string
var newUpdateTimes = make([]string, 0)
for _, v := range value.([]interface{}) {
@@ -57,7 +57,7 @@ func updateServerSettings(request RequestStruct) (settings SettingsStruct, err e
}
if len(newUpdateTimes) == 0 {
newUpdateTimes = append(newUpdateTimes, "0000")
//newUpdateTimes = append(newUpdateTimes, "0000")
}
value = newUpdateTimes

View File

@@ -16,7 +16,7 @@ func showInfo(str string) {
return
}
var max = 22
var max = 23
var msg = strings.SplitN(str, ":", 2)
var length = len(msg[0])
var space string
@@ -48,7 +48,7 @@ func showDebug(str string, level int) {
return
}
var max = 22
var max = 23
var msg = strings.SplitN(str, ":", 2)
var length = len(msg[0])
var space string
@@ -78,7 +78,7 @@ func showDebug(str string, level int) {
func showHighlight(str string) {
var max = 22
var max = 23
var msg = strings.SplitN(str, ":", 2)
var length = len(msg[0])
var space string

File diff suppressed because one or more lines are too long