mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-09 07:10:34 +02:00
Update PlayToManager.cs
Fixed name violation
This commit is contained in:
parent
fde5afc36b
commit
c84aabe954
|
@ -132,19 +132,19 @@ namespace Emby.Dlna.PlayTo
|
||||||
|
|
||||||
private static string GetUuid(string usn)
|
private static string GetUuid(string usn)
|
||||||
{
|
{
|
||||||
const string uuidStr = "uuid:";
|
const string UuidStr = "uuid:";
|
||||||
const string uuidColonStr = "::";
|
const string UuidColonStr = "::";
|
||||||
|
|
||||||
var index = usn.IndexOf(uuidStr, StringComparison.OrdinalIgnoreCase);
|
var index = usn.IndexOf(UuidStr, StringComparison.OrdinalIgnoreCase);
|
||||||
if (index != -1)
|
if (index != -1)
|
||||||
{
|
{
|
||||||
return usn.Substring(index + uuidStr.Length);
|
return usn.Substring(index + UuidStr.Length);
|
||||||
}
|
}
|
||||||
|
|
||||||
index = usn.IndexOf(uuidColonStr, StringComparison.OrdinalIgnoreCase);
|
index = usn.IndexOf(UuidColonStr, StringComparison.OrdinalIgnoreCase);
|
||||||
if (index != -1)
|
if (index != -1)
|
||||||
{
|
{
|
||||||
usn = usn.Substring(0, index + uuidColonStr.Length);
|
usn = usn.Substring(0, index + UuidColonStr.Length);
|
||||||
}
|
}
|
||||||
|
|
||||||
return usn.GetMD5().ToString("N", CultureInfo.InvariantCulture);
|
return usn.GetMD5().ToString("N", CultureInfo.InvariantCulture);
|
||||||
|
|
Loading…
Reference in a new issue