From 0a79641e6608389bd6af1be24ac5834adca80e6d Mon Sep 17 00:00:00 2001 From: Piotrekol <4990365+Piotrekol@users.noreply.github.com> Date: Wed, 23 Feb 2022 18:09:34 +0100 Subject: [PATCH] Fix: Invalid chars in DLed files being removed instead of being replaced by _ --- App/OsuDownloadManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App/OsuDownloadManager.cs b/App/OsuDownloadManager.cs index 53e1fd3..4ef2841 100644 --- a/App/OsuDownloadManager.cs +++ b/App/OsuDownloadManager.cs @@ -167,7 +167,7 @@ private DownloadItem GetDownloadItem(Beatmap beatmap) private string CreateFileName(Beatmap map) { var filename = map.MapSetId + " " + map.ArtistRoman + " - " + map.TitleRoman; - return Helpers.StripInvalidFileNameCharacters(filename) + ".osz"; + return Helpers.StripInvalidFileNameCharacters(filename, "_") + ".osz"; } } } \ No newline at end of file