Use DI for IListingsProvider

This commit is contained in:
Patrick Barron
2024-01-17 12:02:12 -05:00
parent 81cf4b6c50
commit efd024bafe
4 changed files with 10 additions and 8 deletions

View File

@@ -1,5 +1,6 @@
using Jellyfin.LiveTv.Channels;
using Jellyfin.LiveTv.Guide;
using Jellyfin.LiveTv.Listings;
using Jellyfin.LiveTv.TunerHosts;
using Jellyfin.LiveTv.TunerHosts.HdHomerun;
using MediaBrowser.Controller.Channels;
@@ -29,5 +30,7 @@ public static class LiveTvServiceCollectionExtensions
services.AddSingleton<ITunerHost, HdHomerunHost>();
services.AddSingleton<ITunerHost, M3UTunerHost>();
services.AddSingleton<IListingsProvider, SchedulesDirect>();
services.AddSingleton<IListingsProvider, XmlTvListingsProvider>();
}
}