protected void Application_Start() { logger.Info("Avid 4 Started"); AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); JRMC.LoadAndIndexAllAlbums(new string[] { "1", "2" }, DateTime.Now.Hour < 5); // Reload album data from JRMC when restarting between midnight and five (i.e. in the overnight restart) DesktopClient.Initialize(); Receiver.Initialize(); Running.Initialize(); Spotify.Initialize(); DvbViewer.Initialize(); Security.Initialize(); #if USE_SKY_STB SkyData.Initialize(Config.SkyFavourites, Config.SkyRadio, Config.SkyPackages, Config.SkyCapacityGB); var sky = SkyData.Sky; #endif }