2015-07-20 20:32:55 +02:00
|
|
|
|
using MediaBrowser.Common.Configuration;
|
|
|
|
|
using MediaBrowser.Common.Net;
|
|
|
|
|
using MediaBrowser.Controller.LiveTv;
|
|
|
|
|
using MediaBrowser.Model.Dto;
|
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
using MediaBrowser.Model.LiveTv;
|
|
|
|
|
using MediaBrowser.Model.Logging;
|
|
|
|
|
using MediaBrowser.Model.MediaInfo;
|
|
|
|
|
using MediaBrowser.Model.Serialization;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Globalization;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2015-07-23 18:32:34 +02:00
|
|
|
|
namespace MediaBrowser.Server.Implementations.LiveTv.TunerHosts.HdHomerun
|
2015-07-20 20:32:55 +02:00
|
|
|
|
{
|
2015-08-19 19:58:41 +02:00
|
|
|
|
public class HdHomerunHost : BaseTunerHost, ITunerHost
|
2015-07-20 20:32:55 +02:00
|
|
|
|
{
|
|
|
|
|
private readonly IHttpClient _httpClient;
|
|
|
|
|
private readonly IJsonSerializer _jsonSerializer;
|
|
|
|
|
|
2015-08-24 04:08:20 +02:00
|
|
|
|
public HdHomerunHost(IConfigurationManager config, ILogger logger, IHttpClient httpClient, IJsonSerializer jsonSerializer)
|
|
|
|
|
: base(config, logger)
|
2015-07-20 20:32:55 +02:00
|
|
|
|
{
|
|
|
|
|
_httpClient = httpClient;
|
|
|
|
|
_jsonSerializer = jsonSerializer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Name
|
|
|
|
|
{
|
|
|
|
|
get { return "HD Homerun"; }
|
|
|
|
|
}
|
|
|
|
|
|
2015-08-19 19:58:41 +02:00
|
|
|
|
public override string Type
|
2015-07-23 18:32:34 +02:00
|
|
|
|
{
|
|
|
|
|
get { return DeviceType; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static string DeviceType
|
2015-07-20 20:32:55 +02:00
|
|
|
|
{
|
|
|
|
|
get { return "hdhomerun"; }
|
|
|
|
|
}
|
|
|
|
|
|
2015-08-16 20:37:53 +02:00
|
|
|
|
private const string ChannelIdPrefix = "hdhr_";
|
|
|
|
|
|
2015-08-19 19:58:41 +02:00
|
|
|
|
protected override async Task<IEnumerable<ChannelInfo>> GetChannelsInternal(TunerHostInfo info, CancellationToken cancellationToken)
|
2015-07-20 20:32:55 +02:00
|
|
|
|
{
|
|
|
|
|
var options = new HttpRequestOptions
|
|
|
|
|
{
|
2015-07-24 01:40:54 +02:00
|
|
|
|
Url = string.Format("{0}/lineup.json", GetApiUrl(info, false)),
|
2015-07-20 20:32:55 +02:00
|
|
|
|
CancellationToken = cancellationToken
|
|
|
|
|
};
|
|
|
|
|
using (var stream = await _httpClient.Get(options))
|
|
|
|
|
{
|
|
|
|
|
var root = _jsonSerializer.DeserializeFromStream<List<Channels>>(stream);
|
|
|
|
|
|
|
|
|
|
if (root != null)
|
|
|
|
|
{
|
2015-07-25 20:11:46 +02:00
|
|
|
|
var result = root.Select(i => new ChannelInfo
|
2015-07-20 20:32:55 +02:00
|
|
|
|
{
|
|
|
|
|
Name = i.GuideName,
|
|
|
|
|
Number = i.GuideNumber.ToString(CultureInfo.InvariantCulture),
|
2015-08-16 20:37:53 +02:00
|
|
|
|
Id = ChannelIdPrefix + i.GuideNumber.ToString(CultureInfo.InvariantCulture),
|
2015-07-20 20:32:55 +02:00
|
|
|
|
IsFavorite = i.Favorite
|
|
|
|
|
|
|
|
|
|
});
|
2015-07-25 20:11:46 +02:00
|
|
|
|
|
|
|
|
|
if (info.ImportFavoritesOnly)
|
|
|
|
|
{
|
|
|
|
|
result = result.Where(i => (i.IsFavorite ?? true)).ToList();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
2015-07-20 20:32:55 +02:00
|
|
|
|
}
|
|
|
|
|
return new List<ChannelInfo>();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-24 04:48:10 +02:00
|
|
|
|
private async Task<string> GetModelInfo(TunerHostInfo info, CancellationToken cancellationToken)
|
2015-07-20 20:32:55 +02:00
|
|
|
|
{
|
2015-07-21 06:22:46 +02:00
|
|
|
|
string model = null;
|
|
|
|
|
|
|
|
|
|
using (var stream = await _httpClient.Get(new HttpRequestOptions()
|
|
|
|
|
{
|
2015-07-24 01:40:54 +02:00
|
|
|
|
Url = string.Format("{0}/", GetApiUrl(info, false)),
|
2015-07-24 04:48:10 +02:00
|
|
|
|
CancellationToken = cancellationToken,
|
|
|
|
|
CacheLength = TimeSpan.FromDays(1),
|
|
|
|
|
CacheMode = CacheMode.Unconditional
|
2015-07-21 06:22:46 +02:00
|
|
|
|
}))
|
|
|
|
|
{
|
|
|
|
|
using (var sr = new StreamReader(stream, System.Text.Encoding.UTF8))
|
|
|
|
|
{
|
|
|
|
|
while (!sr.EndOfStream)
|
|
|
|
|
{
|
|
|
|
|
string line = StripXML(sr.ReadLine());
|
|
|
|
|
if (line.StartsWith("Model:")) { model = line.Replace("Model: ", ""); }
|
|
|
|
|
//if (line.StartsWith("Device ID:")) { deviceID = line.Replace("Device ID: ", ""); }
|
|
|
|
|
//if (line.StartsWith("Firmware:")) { firmware = line.Replace("Firmware: ", ""); }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-24 04:48:10 +02:00
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public async Task<List<LiveTvTunerInfo>> GetTunerInfos(TunerHostInfo info, CancellationToken cancellationToken)
|
|
|
|
|
{
|
2015-08-25 05:13:04 +02:00
|
|
|
|
var model = await GetModelInfo(info, cancellationToken).ConfigureAwait(false);
|
2015-07-24 04:48:10 +02:00
|
|
|
|
|
2015-07-21 06:22:46 +02:00
|
|
|
|
using (var stream = await _httpClient.Get(new HttpRequestOptions()
|
2015-07-20 20:32:55 +02:00
|
|
|
|
{
|
2015-07-24 01:40:54 +02:00
|
|
|
|
Url = string.Format("{0}/tuners.html", GetApiUrl(info, false)),
|
2015-07-20 20:32:55 +02:00
|
|
|
|
CancellationToken = cancellationToken
|
2015-07-21 06:22:46 +02:00
|
|
|
|
}))
|
2015-07-20 20:32:55 +02:00
|
|
|
|
{
|
|
|
|
|
var tuners = new List<LiveTvTunerInfo>();
|
|
|
|
|
using (var sr = new StreamReader(stream, System.Text.Encoding.UTF8))
|
|
|
|
|
{
|
|
|
|
|
while (!sr.EndOfStream)
|
|
|
|
|
{
|
|
|
|
|
string line = StripXML(sr.ReadLine());
|
|
|
|
|
if (line.Contains("Channel"))
|
|
|
|
|
{
|
|
|
|
|
LiveTvTunerStatus status;
|
|
|
|
|
var index = line.IndexOf("Channel", StringComparison.OrdinalIgnoreCase);
|
|
|
|
|
var name = line.Substring(0, index - 1);
|
|
|
|
|
var currentChannel = line.Substring(index + 7);
|
|
|
|
|
if (currentChannel != "none") { status = LiveTvTunerStatus.LiveTv; } else { status = LiveTvTunerStatus.Available; }
|
2015-08-20 01:57:27 +02:00
|
|
|
|
tuners.Add(new LiveTvTunerInfo
|
2015-07-20 20:32:55 +02:00
|
|
|
|
{
|
|
|
|
|
Name = name,
|
2015-07-21 06:22:46 +02:00
|
|
|
|
SourceType = string.IsNullOrWhiteSpace(model) ? Name : model,
|
2015-07-20 20:32:55 +02:00
|
|
|
|
ProgramName = currentChannel,
|
|
|
|
|
Status = status
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tuners;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-08-19 18:43:23 +02:00
|
|
|
|
public async Task<List<LiveTvTunerInfo>> GetTunerInfos(CancellationToken cancellationToken)
|
|
|
|
|
{
|
|
|
|
|
var list = new List<LiveTvTunerInfo>();
|
|
|
|
|
|
|
|
|
|
foreach (var host in GetConfiguration().TunerHosts
|
|
|
|
|
.Where(i => i.IsEnabled && string.Equals(i.Type, Type, StringComparison.OrdinalIgnoreCase)))
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
list.AddRange(await GetTunerInfos(host, cancellationToken).ConfigureAwait(false));
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
2015-08-19 19:58:41 +02:00
|
|
|
|
Logger.ErrorException("Error getting tuner info", ex);
|
2015-08-19 18:43:23 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-24 01:40:54 +02:00
|
|
|
|
private string GetApiUrl(TunerHostInfo info, bool isPlayback)
|
2015-07-20 20:32:55 +02:00
|
|
|
|
{
|
|
|
|
|
var url = info.Url;
|
|
|
|
|
|
2015-08-24 04:08:20 +02:00
|
|
|
|
if (string.IsNullOrWhiteSpace(url))
|
|
|
|
|
{
|
|
|
|
|
throw new ArgumentException("Invalid tuner info");
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-20 20:32:55 +02:00
|
|
|
|
if (!url.StartsWith("http", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
url = "http://" + url;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-24 01:40:54 +02:00
|
|
|
|
var uri = new Uri(url);
|
|
|
|
|
|
|
|
|
|
if (isPlayback)
|
|
|
|
|
{
|
|
|
|
|
var builder = new UriBuilder(uri);
|
|
|
|
|
builder.Port = 5004;
|
|
|
|
|
uri = builder.Uri;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return uri.AbsoluteUri.TrimEnd('/');
|
2015-07-20 20:32:55 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static string StripXML(string source)
|
|
|
|
|
{
|
|
|
|
|
char[] buffer = new char[source.Length];
|
|
|
|
|
int bufferIndex = 0;
|
|
|
|
|
bool inside = false;
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < source.Length; i++)
|
|
|
|
|
{
|
|
|
|
|
char let = source[i];
|
|
|
|
|
if (let == '<')
|
|
|
|
|
{
|
|
|
|
|
inside = true;
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
if (let == '>')
|
|
|
|
|
{
|
|
|
|
|
inside = false;
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
if (!inside)
|
|
|
|
|
{
|
|
|
|
|
buffer[bufferIndex] = let;
|
|
|
|
|
bufferIndex++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return new string(buffer, 0, bufferIndex);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private class Channels
|
|
|
|
|
{
|
|
|
|
|
public string GuideNumber { get; set; }
|
|
|
|
|
public string GuideName { get; set; }
|
|
|
|
|
public string URL { get; set; }
|
|
|
|
|
public bool Favorite { get; set; }
|
|
|
|
|
public bool DRM { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-24 01:40:54 +02:00
|
|
|
|
private MediaSourceInfo GetMediaSource(TunerHostInfo info, string channelId, string profile)
|
2015-07-20 20:32:55 +02:00
|
|
|
|
{
|
2015-07-24 04:48:10 +02:00
|
|
|
|
int? width = null;
|
|
|
|
|
int? height = null;
|
|
|
|
|
bool isInterlaced = true;
|
|
|
|
|
var videoCodec = "mpeg2video";
|
|
|
|
|
int? videoBitrate = null;
|
|
|
|
|
|
|
|
|
|
if (string.Equals(profile, "mobile", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
width = 1280;
|
|
|
|
|
height = 720;
|
|
|
|
|
isInterlaced = false;
|
|
|
|
|
videoCodec = "h264";
|
|
|
|
|
videoBitrate = 2000000;
|
|
|
|
|
}
|
|
|
|
|
else if (string.Equals(profile, "heavy", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
width = 1920;
|
|
|
|
|
height = 1080;
|
|
|
|
|
isInterlaced = false;
|
|
|
|
|
videoCodec = "h264";
|
|
|
|
|
videoBitrate = 8000000;
|
|
|
|
|
}
|
|
|
|
|
else if (string.Equals(profile, "internet720", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
width = 1280;
|
|
|
|
|
height = 720;
|
|
|
|
|
isInterlaced = false;
|
|
|
|
|
videoCodec = "h264";
|
|
|
|
|
videoBitrate = 5000000;
|
|
|
|
|
}
|
|
|
|
|
else if (string.Equals(profile, "internet540", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
width = 1280;
|
|
|
|
|
height = 720;
|
|
|
|
|
isInterlaced = false;
|
|
|
|
|
videoCodec = "h264";
|
|
|
|
|
videoBitrate = 2500000;
|
|
|
|
|
}
|
|
|
|
|
else if (string.Equals(profile, "internet480", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
width = 848;
|
|
|
|
|
height = 480;
|
|
|
|
|
isInterlaced = false;
|
|
|
|
|
videoCodec = "h264";
|
|
|
|
|
videoBitrate = 2000000;
|
|
|
|
|
}
|
|
|
|
|
else if (string.Equals(profile, "internet360", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
width = 640;
|
|
|
|
|
height = 360;
|
|
|
|
|
isInterlaced = false;
|
|
|
|
|
videoCodec = "h264";
|
|
|
|
|
videoBitrate = 1500000;
|
|
|
|
|
}
|
|
|
|
|
else if (string.Equals(profile, "internet240", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
width = 432;
|
|
|
|
|
height = 240;
|
|
|
|
|
isInterlaced = false;
|
|
|
|
|
videoCodec = "h264";
|
|
|
|
|
videoBitrate = 1000000;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var url = GetApiUrl(info, true) + "/auto/v" + channelId;
|
|
|
|
|
|
2015-07-24 23:44:25 +02:00
|
|
|
|
if (!string.IsNullOrWhiteSpace(profile) && !string.Equals(profile, "native", StringComparison.OrdinalIgnoreCase))
|
2015-07-24 04:48:10 +02:00
|
|
|
|
{
|
|
|
|
|
url += "?transcode=" + profile;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-24 01:40:54 +02:00
|
|
|
|
var mediaSource = new MediaSourceInfo
|
2015-07-20 20:32:55 +02:00
|
|
|
|
{
|
2015-07-24 04:48:10 +02:00
|
|
|
|
Path = url,
|
2015-07-24 01:40:54 +02:00
|
|
|
|
Protocol = MediaProtocol.Http,
|
|
|
|
|
MediaStreams = new List<MediaStream>
|
2015-07-20 20:32:55 +02:00
|
|
|
|
{
|
|
|
|
|
new MediaStream
|
|
|
|
|
{
|
|
|
|
|
Type = MediaStreamType.Video,
|
|
|
|
|
// Set the index to -1 because we don't know the exact index of the video stream within the container
|
|
|
|
|
Index = -1,
|
2015-07-24 04:48:10 +02:00
|
|
|
|
IsInterlaced = isInterlaced,
|
|
|
|
|
Codec = videoCodec,
|
|
|
|
|
Width = width,
|
|
|
|
|
Height = height,
|
|
|
|
|
BitRate = videoBitrate
|
|
|
|
|
|
2015-07-20 20:32:55 +02:00
|
|
|
|
},
|
|
|
|
|
new MediaStream
|
|
|
|
|
{
|
|
|
|
|
Type = MediaStreamType.Audio,
|
|
|
|
|
// Set the index to -1 because we don't know the exact index of the audio stream within the container
|
2015-07-24 04:48:10 +02:00
|
|
|
|
Index = -1,
|
|
|
|
|
Codec = "ac3",
|
|
|
|
|
BitRate = 128000
|
2015-07-20 20:32:55 +02:00
|
|
|
|
}
|
2015-07-24 01:40:54 +02:00
|
|
|
|
},
|
2015-09-06 06:53:37 +02:00
|
|
|
|
RequiresOpening = true,
|
|
|
|
|
RequiresClosing = true,
|
2015-07-25 20:42:39 +02:00
|
|
|
|
BufferMs = 1000,
|
|
|
|
|
Container = "ts",
|
|
|
|
|
Id = profile
|
2015-07-24 01:40:54 +02:00
|
|
|
|
};
|
2015-07-20 20:32:55 +02:00
|
|
|
|
|
2015-07-24 01:40:54 +02:00
|
|
|
|
return mediaSource;
|
2015-07-20 20:32:55 +02:00
|
|
|
|
}
|
2015-07-23 15:23:22 +02:00
|
|
|
|
|
2015-08-19 21:25:18 +02:00
|
|
|
|
protected override async Task<List<MediaSourceInfo>> GetChannelStreamMediaSources(TunerHostInfo info, string channelId, CancellationToken cancellationToken)
|
2015-07-24 01:40:54 +02:00
|
|
|
|
{
|
|
|
|
|
var list = new List<MediaSourceInfo>();
|
|
|
|
|
|
2015-08-16 20:37:53 +02:00
|
|
|
|
if (!channelId.StartsWith(ChannelIdPrefix, StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
return list;
|
|
|
|
|
}
|
2015-08-16 22:26:49 +02:00
|
|
|
|
channelId = channelId.Substring(ChannelIdPrefix.Length);
|
2015-08-16 20:37:53 +02:00
|
|
|
|
|
2015-07-24 23:44:25 +02:00
|
|
|
|
list.Add(GetMediaSource(info, channelId, "native"));
|
2015-07-24 01:40:54 +02:00
|
|
|
|
|
2015-07-24 04:48:10 +02:00
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
string model = await GetModelInfo(info, cancellationToken).ConfigureAwait(false);
|
|
|
|
|
model = model ?? string.Empty;
|
|
|
|
|
|
|
|
|
|
if (model.IndexOf("hdtc", StringComparison.OrdinalIgnoreCase) != -1)
|
|
|
|
|
{
|
2015-07-24 17:20:11 +02:00
|
|
|
|
list.Insert(0, GetMediaSource(info, channelId, "heavy"));
|
|
|
|
|
|
2015-07-24 04:48:10 +02:00
|
|
|
|
list.Add(GetMediaSource(info, channelId, "internet480"));
|
|
|
|
|
list.Add(GetMediaSource(info, channelId, "internet360"));
|
|
|
|
|
list.Add(GetMediaSource(info, channelId, "internet240"));
|
|
|
|
|
list.Add(GetMediaSource(info, channelId, "mobile"));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
2015-08-16 20:37:53 +02:00
|
|
|
|
|
2015-07-24 04:48:10 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return list;
|
2015-07-24 01:40:54 +02:00
|
|
|
|
}
|
|
|
|
|
|
2015-08-19 21:25:18 +02:00
|
|
|
|
protected override bool IsValidChannelId(string channelId)
|
|
|
|
|
{
|
|
|
|
|
return channelId.StartsWith(ChannelIdPrefix, StringComparison.OrdinalIgnoreCase);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override async Task<MediaSourceInfo> GetChannelStream(TunerHostInfo info, string channelId, string streamId, CancellationToken cancellationToken)
|
2015-07-24 01:40:54 +02:00
|
|
|
|
{
|
2015-09-01 21:18:25 +02:00
|
|
|
|
Logger.Debug("GetChannelStream: channel id: {0}. stream id: {1}", channelId, streamId ?? string.Empty);
|
|
|
|
|
|
2015-08-16 20:37:53 +02:00
|
|
|
|
if (!channelId.StartsWith(ChannelIdPrefix, StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2015-08-16 22:26:49 +02:00
|
|
|
|
channelId = channelId.Substring(ChannelIdPrefix.Length);
|
2015-08-16 20:37:53 +02:00
|
|
|
|
|
2015-07-24 23:44:25 +02:00
|
|
|
|
return GetMediaSource(info, channelId, streamId);
|
2015-07-24 01:40:54 +02:00
|
|
|
|
}
|
2015-07-23 15:23:22 +02:00
|
|
|
|
|
|
|
|
|
public async Task Validate(TunerHostInfo info)
|
|
|
|
|
{
|
2015-08-24 04:08:20 +02:00
|
|
|
|
if (info.IsEnabled)
|
|
|
|
|
{
|
|
|
|
|
await GetChannels(info, false, CancellationToken.None).ConfigureAwait(false);
|
|
|
|
|
}
|
2015-07-23 15:23:22 +02:00
|
|
|
|
}
|
2015-08-19 21:25:18 +02:00
|
|
|
|
|
2015-08-20 01:57:27 +02:00
|
|
|
|
protected override async Task<bool> IsAvailableInternal(TunerHostInfo tuner, string channelId, CancellationToken cancellationToken)
|
2015-08-19 21:25:18 +02:00
|
|
|
|
{
|
2015-08-20 01:57:27 +02:00
|
|
|
|
var info = await GetTunerInfos(tuner, cancellationToken).ConfigureAwait(false);
|
|
|
|
|
|
2015-08-25 05:13:04 +02:00
|
|
|
|
return info.Any(i => i.Status == LiveTvTunerStatus.Available || string.Equals(i.ChannelId, channelId, StringComparison.OrdinalIgnoreCase));
|
2015-08-19 21:25:18 +02:00
|
|
|
|
}
|
2015-07-20 20:32:55 +02:00
|
|
|
|
}
|
|
|
|
|
}
|