XEPG performance

This commit is contained in:
marmei
2019-10-11 17:53:20 +02:00
parent dc42afcd05
commit 3d9266dabe
7 changed files with 68 additions and 25 deletions

View File

@@ -503,8 +503,20 @@ func saveXEpgMapping(request RequestStruct) (err error) {
if System.ScanInProgress == 0 {
System.ScanInProgress = 1
cleanupXEPG()
buildXEPG(true)
//buildXEPG(true)
go func() {
createXMLTVFile()
createM3UFile()
showInfo("XEPG:" + fmt.Sprintf("Ready to use"))
go cachingImages()
System.ScanInProgress = 0
}()
} else {
@@ -525,8 +537,17 @@ func saveXEpgMapping(request RequestStruct) (err error) {
}
System.ScanInProgress = 1
cleanupXEPG()
buildXEPG(false)
//buildXEPG(false)
createXMLTVFile()
createM3UFile()
showInfo("XEPG:" + fmt.Sprintf("Ready to use"))
go cachingImages()
System.ScanInProgress = 0
System.BackgroundProcess = false