XmlTv.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using MediaBrowser.Controller.LiveTv;
  2. using MediaBrowser.Model.Dto;
  3. using MediaBrowser.Model.LiveTv;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Threading;
  7. using System.Threading.Tasks;
  8. namespace MediaBrowser.Server.Implementations.LiveTv.Listings
  9. {
  10. public class XmlTv : IListingsProvider
  11. {
  12. public string Name
  13. {
  14. get { return "XmlTV"; }
  15. }
  16. public string Type
  17. {
  18. get { return "xmltv"; }
  19. }
  20. public Task<IEnumerable<ProgramInfo>> GetProgramsAsync(ListingsProviderInfo info, string channelNumber, DateTime startDateUtc, DateTime endDateUtc, CancellationToken cancellationToken)
  21. {
  22. throw new NotImplementedException();
  23. }
  24. public async Task AddMetadata(ListingsProviderInfo info, List<ChannelInfo> channels, CancellationToken cancellationToken)
  25. {
  26. // Might not be needed
  27. }
  28. public async Task Validate(ListingsProviderInfo info, bool validateLogin, bool validateListings)
  29. {
  30. // Check that the path or url is valid. If not, throw a file not found exception
  31. }
  32. public Task<List<NameIdPair>> GetLineups(ListingsProviderInfo info, string country, string location)
  33. {
  34. // In theory this should never be called because there is always only one lineup
  35. throw new NotImplementedException();
  36. }
  37. }
  38. }