Synchronize native Enigma2 channels every six hours and migrate preferences
This commit is contained in:
@@ -24,6 +24,8 @@ namespace Jellyfin.Plugin.Enigma2
|
||||
serviceCollection.AddSingleton<PreferencesStore>();
|
||||
serviceCollection.AddTransient<Microsoft.AspNetCore.Hosting.IStartupFilter, NativeChannelFilter>();
|
||||
serviceCollection.AddSingleton<ILiveTvService, LiveTvService>();
|
||||
serviceCollection.AddSingleton<ChannelSyncTask>();
|
||||
serviceCollection.AddSingleton<MediaBrowser.Model.Tasks.IScheduledTask>(provider => provider.GetRequiredService<ChannelSyncTask>());
|
||||
// Jellyfin registers services before constructing Plugin.Instance.
|
||||
var paths = serviceCollection.Last(x => x.ServiceType == typeof(IApplicationPaths)).ImplementationInstance as IApplicationPaths;
|
||||
if (VuRecordingsEnabled(Path.Combine(paths.PluginConfigurationsPath, "Jellyfin.Plugin.Enigma2.xml")))
|
||||
|
||||
Reference in New Issue
Block a user