Use TV guide for livestreams
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
using Jellyfin.Plugin.SRFPlay.Api;
|
||||
using Jellyfin.Plugin.SRFPlay.Channels;
|
||||
using Jellyfin.Plugin.SRFPlay.LiveTv;
|
||||
using Jellyfin.Plugin.SRFPlay.Providers;
|
||||
using Jellyfin.Plugin.SRFPlay.ScheduledTasks;
|
||||
using Jellyfin.Plugin.SRFPlay.Services;
|
||||
using Jellyfin.Plugin.SRFPlay.Services.Interfaces;
|
||||
using MediaBrowser.Controller;
|
||||
using MediaBrowser.Controller.Channels;
|
||||
using MediaBrowser.Controller.LiveTv;
|
||||
using MediaBrowser.Controller.Plugins;
|
||||
using MediaBrowser.Model.Tasks;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
@@ -47,5 +49,8 @@ public class ServiceRegistrator : IPluginServiceRegistrator
|
||||
|
||||
// Register channel - must register as IChannel interface for Jellyfin to discover it
|
||||
serviceCollection.AddSingleton<IChannel, SRFPlayChannel>();
|
||||
|
||||
// Register Live TV service - provides virtual channels for scheduled livestreams
|
||||
serviceCollection.AddSingleton<ILiveTvService, SRFLiveTvService>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user