2015-07-24 23:44:25 +02:00
|
|
|
|
using MediaBrowser.Controller.LiveTv;
|
|
|
|
|
using MediaBrowser.Model.Dto;
|
|
|
|
|
using MediaBrowser.Model.LiveTv;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Server.Implementations.LiveTv.Listings
|
|
|
|
|
{
|
|
|
|
|
public class XmlTv : IListingsProvider
|
|
|
|
|
{
|
|
|
|
|
public string Name
|
|
|
|
|
{
|
|
|
|
|
get { return "XmlTV"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Type
|
|
|
|
|
{
|
|
|
|
|
get { return "xmltv"; }
|
|
|
|
|
}
|
|
|
|
|
|
2015-10-11 02:39:30 +02:00
|
|
|
|
public Task<IEnumerable<ProgramInfo>> GetProgramsAsync(ListingsProviderInfo info, string channelNumber, string channelName, DateTime startDateUtc, DateTime endDateUtc, CancellationToken cancellationToken)
|
2015-07-24 23:44:25 +02:00
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public async Task AddMetadata(ListingsProviderInfo info, List<ChannelInfo> channels, CancellationToken cancellationToken)
|
|
|
|
|
{
|
|
|
|
|
// Might not be needed
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-25 19:21:10 +02:00
|
|
|
|
public async Task Validate(ListingsProviderInfo info, bool validateLogin, bool validateListings)
|
2015-07-24 23:44:25 +02:00
|
|
|
|
{
|
|
|
|
|
// Check that the path or url is valid. If not, throw a file not found exception
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Task<List<NameIdPair>> GetLineups(ListingsProviderInfo info, string country, string location)
|
|
|
|
|
{
|
|
|
|
|
// In theory this should never be called because there is always only one lineup
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|