MCPcopy Index your code
hub / github.com/Threadfin/Threadfin / StartSystem

Function StartSystem

src/config.go:241–278  ·  view source on GitHub ↗

StartSystem : System wird gestartet

(updateProviderFiles bool)

Source from the content-addressed store, hash-verified

239
240// StartSystem : System wird gestartet
241func StartSystem(updateProviderFiles bool) (err error) {
242
243 setDeviceID()
244
245 // Systeminformationen in der Konsole ausgeben
246 showInfo(fmt.Sprintf("UUID:%s", Settings.UUID))
247 showInfo(fmt.Sprintf("Tuner (Plex / Emby):%d", Settings.Tuner))
248 showInfo(fmt.Sprintf("EPG Source:%s", Settings.EpgSource))
249 showInfo(fmt.Sprintf("Plex Channel Limit:%d", System.PlexChannelLimit))
250 showInfo(fmt.Sprintf("Unfiltered Chan. Limit:%d", System.UnfilteredChannelLimit))
251
252 // Providerdaten aktualisieren
253 if len(Settings.Files.M3U) > 0 && Settings.FilesUpdate == true || updateProviderFiles == true {
254
255 err = ThreadfinAutoBackup()
256 if err != nil {
257 ShowError(err, 1090)
258 }
259
260 getProviderData("m3u", "")
261 getProviderData("hdhr", "")
262
263 if Settings.EpgSource == "XEPG" {
264 getProviderData("xmltv", "")
265 }
266
267 }
268
269 // Use the centralized function that contains the exact startup workflow
270 // This will process all files that need to be saved/updated during startup
271 err = processStartupWorkflow("startup", "")
272 if err != nil {
273 ShowError(err, 0)
274 return
275 }
276
277 return
278}

Callers 2

mainFunction · 0.92
ThreadfinRestoreFunction · 0.85

Calls 6

setDeviceIDFunction · 0.85
showInfoFunction · 0.85
ThreadfinAutoBackupFunction · 0.85
ShowErrorFunction · 0.85
getProviderDataFunction · 0.85
processStartupWorkflowFunction · 0.85

Tested by

no test coverage detected