diff --git a/Shokofin/SignalR/Models/FileRenamedEventArgs.cs b/Shokofin/SignalR/Models/FileRenamedEventArgs.cs index f6430e3a..85667b10 100644 --- a/Shokofin/SignalR/Models/FileRenamedEventArgs.cs +++ b/Shokofin/SignalR/Models/FileRenamedEventArgs.cs @@ -25,7 +25,7 @@ public class FileRenamedEventArgs : FileEventArgs, IFileRelocationEventArgs /// [JsonIgnore] - public string PreviousRelativePath => RelativePath[^FileName.Length] + PreviousFileName; + public string PreviousRelativePath => RelativePath[..^FileName.Length] + PreviousFileName; public class V0 : IFileRelocationEventArgs {