diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-09-17 13:12:21 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-09-17 13:12:21 -0400 |
| commit | 7ed664636f87123277d8af8ac14447db07a712a5 (patch) | |
| tree | 99c8b8ba8a0224d68557d97e5e0e7e10c1c39479 | |
| parent | 6919865350a2ddf1e19e50ffdbc25721ace9a1ac (diff) | |
separate device
| -rw-r--r-- | MediaBrowser.Dlna/Main/DlnaEntryPoint.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/MediaBrowser.Dlna/Main/DlnaEntryPoint.cs b/MediaBrowser.Dlna/Main/DlnaEntryPoint.cs index c3810a9e6..eb089cdd2 100644 --- a/MediaBrowser.Dlna/Main/DlnaEntryPoint.cs +++ b/MediaBrowser.Dlna/Main/DlnaEntryPoint.cs @@ -258,7 +258,7 @@ namespace MediaBrowser.Dlna.Main var deviceTypeNamespace = serviceParts[0].Replace('.', '-'); - _Publisher.AddDevice(new SsdpRootDevice + var device = new SsdpRootDevice { CacheLifetime = TimeSpan.FromSeconds(cacheLength), //How long SSDP clients can cache this info. Location = uri, // Must point to the URL that serves your devices UPnP description document. @@ -268,8 +268,11 @@ namespace MediaBrowser.Dlna.Main FriendlyName = "Emby Server", Manufacturer = "Emby", ModelName = "Emby Server", - Uuid = udn // This must be a globally unique value that survives reboots etc. Get from storage or embedded hardware etc. - }); + Uuid = udn + // This must be a globally unique value that survives reboots etc. Get from storage or embedded hardware etc. + }; + + _Publisher.AddDevice(device); } } } |
