localstorage upgrage, custome colors, fixed broken files (encoding issues)

This commit is contained in:
ju09279
2024-09-01 01:38:52 +02:00
parent 97521f19e5
commit f4164ccf24
21 changed files with 454 additions and 236 deletions

View File

@@ -144,9 +144,9 @@ public class Osudb
if (match.Success)
{
string background = match.Groups["image_filename"].Value;
string background = Uri.EscapeDataString(match.Groups["image_filename"].Value);
return Path.Combine(songfolder, background);
return Path.Combine(Uri.EscapeDataString(songfolder), background);
}
pattern = @"\d+,\d+,""(?<image_filename>[^""]+\.[a-zA-Z]+)""";
@@ -155,10 +155,10 @@ public class Osudb
if (match.Success)
{
string background = match.Groups["image_filename"].Value;
return Path.Combine(songfolder, background);
string background = Uri.EscapeDataString(match.Groups["image_filename"].Value);
return Path.Combine(Uri.EscapeDataString(songfolder), background);
}
}
return null;
return "default-bg.png";
}
}