mirror of
https://github.com/Radarr/Radarr
synced 2025-12-06 16:32:36 +01:00
Fixed: Escape backticks in discord notifications
(cherry picked from commit 70c74fc1769f2094a14faaa103c49d744534be9f)
This commit is contained in:
parent
5870c88e1c
commit
1b28116a7e
1 changed files with 2 additions and 2 deletions
|
|
@ -644,9 +644,9 @@ private string GetTitle(Movie movie)
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
var title = movie.MovieMetadata.Value.Year > 0 ? $"{movie.MovieMetadata.Value.Title} ({movie.MovieMetadata.Value.Year})" : movie.MovieMetadata.Value.Title;
|
var title = (movie.MovieMetadata.Value.Year > 0 ? $"{movie.MovieMetadata.Value.Title} ({movie.MovieMetadata.Value.Year})" : movie.MovieMetadata.Value.Title).Replace("`", "\\`");
|
||||||
|
|
||||||
return title.Length > 256 ? $"{title.AsSpan(0, 253)}..." : title;
|
return title.Length > 256 ? $"{title.AsSpan(0, 253).TrimEnd('\\')}..." : title;
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<string> GetTagLabels(Movie movie)
|
private List<string> GetTagLabels(Movie movie)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue