StartSystem : System wird gestartet
(updateProviderFiles bool)
| 239 | |
| 240 | // StartSystem : System wird gestartet |
| 241 | func 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 | } |
no test coverage detected