From ed9021f40b19dddc3029bf263c337a9d3fb0ab2c Mon Sep 17 00:00:00 2001 From: BaronGreenback Date: Mon, 7 Sep 2020 21:43:48 +0100 Subject: [PATCH] Update PlayToManager.cs --- Emby.Dlna/PlayTo/PlayToManager.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Emby.Dlna/PlayTo/PlayToManager.cs b/Emby.Dlna/PlayTo/PlayToManager.cs index 3d1dd3e73..9b242c2c4 100644 --- a/Emby.Dlna/PlayTo/PlayToManager.cs +++ b/Emby.Dlna/PlayTo/PlayToManager.cs @@ -130,20 +130,20 @@ namespace Emby.Dlna.PlayTo } } - private string GetUuid(string usn) + private static string GetUuid(string usn) { var found = false; var index = usn.IndexOf("uuid:", StringComparison.OrdinalIgnoreCase); if (index != -1) { - usn = usn.Substring(index); + usn = usn.Substring(index + 5); found = true; } index = usn.IndexOf("::", StringComparison.OrdinalIgnoreCase); if (index != -1) { - usn = usn.Substring(0, index); + usn = usn.Substring(0, index + 2); } if (found)