v2.1.0.0105: Settings for URI scheme
This commit is contained in:
11
src/data.go
11
src/data.go
@@ -107,6 +107,9 @@ func updateServerSettings(request RequestStruct) (settings SettingsStrcut, err e
|
||||
|
||||
}
|
||||
|
||||
case "scheme.m3u", "scheme.xml":
|
||||
createXEPGFiles = true
|
||||
|
||||
}
|
||||
|
||||
oldSettings[key] = value
|
||||
@@ -141,6 +144,8 @@ func updateServerSettings(request RequestStruct) (settings SettingsStrcut, err e
|
||||
return
|
||||
}
|
||||
|
||||
setURLScheme()
|
||||
|
||||
if Settings.AuthenticationWEB == false {
|
||||
|
||||
Settings.AuthenticationAPI = false
|
||||
@@ -505,11 +510,10 @@ func saveXEpgMapping(request RequestStruct) (err error) {
|
||||
|
||||
System.ScanInProgress = 1
|
||||
cleanupXEPG()
|
||||
//buildXEPG(true)
|
||||
buildXEPG(true)
|
||||
|
||||
go func() {
|
||||
|
||||
mapping()
|
||||
createXMLTVFile()
|
||||
createM3UFile()
|
||||
showInfo("XEPG:" + fmt.Sprintf("Ready to use"))
|
||||
@@ -541,8 +545,7 @@ func saveXEpgMapping(request RequestStruct) (err error) {
|
||||
System.ScanInProgress = 1
|
||||
|
||||
cleanupXEPG()
|
||||
//buildXEPG(false)
|
||||
mapping()
|
||||
buildXEPG(false)
|
||||
createXMLTVFile()
|
||||
createM3UFile()
|
||||
showInfo("XEPG:" + fmt.Sprintf("Ready to use"))
|
||||
|
||||
Reference in New Issue
Block a user