diff options
Diffstat (limited to 'MediaBrowser.Dlna/Server/UpnpDevice.cs')
| -rw-r--r-- | MediaBrowser.Dlna/Server/UpnpDevice.cs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/MediaBrowser.Dlna/Server/UpnpDevice.cs b/MediaBrowser.Dlna/Server/UpnpDevice.cs index 10eaeb053..355a35c01 100644 --- a/MediaBrowser.Dlna/Server/UpnpDevice.cs +++ b/MediaBrowser.Dlna/Server/UpnpDevice.cs @@ -19,13 +19,18 @@ namespace MediaBrowser.Dlna.Server Address = address; - if (Type.StartsWith("uuid:", StringComparison.OrdinalIgnoreCase)) + USN = CreateUSN(aUuid, aType); + } + + private static string CreateUSN(string aUuid, string aType) + { + if (aType.StartsWith("uuid:", StringComparison.OrdinalIgnoreCase)) { - USN = Type; + return aType; } else { - USN = String.Format("uuid:{0}::{1}", Uuid, Type); + return String.Format("uuid:{0}::{1}", aUuid, aType); } } } |
