fix tuner method

This commit is contained in:
Luke Pulverenti 2017-03-02 15:56:25 -05:00
parent 9776ca09db
commit fcc26d5453

View File

@ -167,10 +167,12 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts.HdHomerun
var tuners = new List<LiveTvTunerInfo>(); var tuners = new List<LiveTvTunerInfo>();
var uri = new Uri(info.Url);
using (var manager = new HdHomerunManager(_socketFactory)) using (var manager = new HdHomerunManager(_socketFactory))
{ {
// Legacy HdHomeruns are IPv4 only // Legacy HdHomeruns are IPv4 only
var ipInfo = new IpAddressInfo(info.Url, IpAddressFamily.InterNetwork); var ipInfo = new IpAddressInfo(uri.Host, IpAddressFamily.InterNetwork);
for (int i = 0; i < model.TunerCount; ++i) for (int i = 0; i < model.TunerCount; ++i)
{ {