mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-23 15:30:56 -04:00
comment out satip discovery
This commit is contained in:
parent
95ae1c5f7b
commit
2bb234c1f8
@ -41,26 +41,26 @@ namespace MediaBrowser.Server.Implementations.LiveTv.TunerHosts.SatIp
|
|||||||
|
|
||||||
void _deviceDiscovery_DeviceDiscovered(object sender, SsdpMessageEventArgs e)
|
void _deviceDiscovery_DeviceDiscovered(object sender, SsdpMessageEventArgs e)
|
||||||
{
|
{
|
||||||
string server = null;
|
//string server = null;
|
||||||
if (e.Headers.TryGetValue("SERVER", out server) && server.IndexOf("HDHomeRun", StringComparison.OrdinalIgnoreCase) != -1)
|
//if (e.Headers.TryGetValue("SERVER", out server) && server.IndexOf("HDHomeRun", StringComparison.OrdinalIgnoreCase) != -1)
|
||||||
{
|
//{
|
||||||
string location;
|
// string location;
|
||||||
if (e.Headers.TryGetValue("Location", out location))
|
// if (e.Headers.TryGetValue("Location", out location))
|
||||||
{
|
// {
|
||||||
//_logger.Debug("HdHomerun found at {0}", location);
|
// //_logger.Debug("HdHomerun found at {0}", location);
|
||||||
|
|
||||||
// Just get the beginning of the url
|
// // Just get the beginning of the url
|
||||||
Uri uri;
|
// Uri uri;
|
||||||
if (Uri.TryCreate(location, UriKind.Absolute, out uri))
|
// if (Uri.TryCreate(location, UriKind.Absolute, out uri))
|
||||||
{
|
// {
|
||||||
var apiUrl = location.Replace(uri.LocalPath, String.Empty, StringComparison.OrdinalIgnoreCase)
|
// var apiUrl = location.Replace(uri.LocalPath, String.Empty, StringComparison.OrdinalIgnoreCase)
|
||||||
.TrimEnd('/');
|
// .TrimEnd('/');
|
||||||
|
|
||||||
//_logger.Debug("HdHomerun api url: {0}", apiUrl);
|
// //_logger.Debug("HdHomerun api url: {0}", apiUrl);
|
||||||
AddDevice(apiUrl);
|
// AddDevice(apiUrl);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void AddDevice(string url)
|
private async void AddDevice(string url)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user