diff --git a/Shokofin/API/Models/File.cs b/Shokofin/API/Models/File.cs index 596e7e1a..559c312f 100644 --- a/Shokofin/API/Models/File.cs +++ b/Shokofin/API/Models/File.cs @@ -67,7 +67,6 @@ public class Location /// The id of the this /// resides in. /// - /// [JsonPropertyName("ImportFolderID")] public int ImportFolderId { get; set; } @@ -83,18 +82,14 @@ public class Location /// the start. /// public string Path => - __path != null ? ( - __path - ) : ( - __path = System.IO.Path.DirectorySeparatorChar + RelativePath - .Replace('/', System.IO.Path.DirectorySeparatorChar) - .Replace('\\', System.IO.Path.DirectorySeparatorChar) - ); + CachedPath ??= System.IO.Path.DirectorySeparatorChar + RelativePath + .Replace('/', System.IO.Path.DirectorySeparatorChar) + .Replace('\\', System.IO.Path.DirectorySeparatorChar); /// /// Cached path for later re-use. /// - private string? __path { get; set; } + private string? CachedPath { get; set; } /// /// True if the server can access the the at