diff --git a/BombRushRadio.csproj b/BombRushRadio.csproj index 71a94d4..62995fe 100644 --- a/BombRushRadio.csproj +++ b/BombRushRadio.csproj @@ -1,12 +1,12 @@  - net462 + net461 BombRushRadio Allows adding custom music tracks to Bomb Rush Cyberfunk. - 1.6.1 + 1.7 true - latest + 11 diff --git a/Helpers.cs b/Helpers.cs index b7e9a66..5d24cd0 100644 --- a/Helpers.cs +++ b/Helpers.cs @@ -60,7 +60,7 @@ public static string[] GetMetadata(string filePath, bool oldMethod) songArtist = songArtist.Trim(); } - return [songArtist, songName.Trim()]; + return new[]{songArtist, songName.Trim()}; } public static string FormatMetadata(string[] metadata, string type) diff --git a/Plugin.cs b/Plugin.cs index 78da164..5dafd14 100644 --- a/Plugin.cs +++ b/Plugin.cs @@ -55,7 +55,7 @@ public void SanitizeSongs() Logger.LogInfo("[BRR] Adding " + tr.Title); } - if (Loaded.FirstOrDefault(l => l == Helpers.FormatMetadata([tr.Artist, tr.Title], "dash")) == null) + if (Loaded.FirstOrDefault(l => l == Helpers.FormatMetadata(new []{tr.Artist, tr.Title}, "dash")) == null) { Logger.LogInfo("[BRR] Removing " + tr.Title); toRemove.Add(tr); diff --git a/README.md b/README.md index 5bc419e..6db2ff1 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ You can also use folders, like this: # Config ``` -## Settings file was created by plugin Bomb Rush Radio! v1.4 +## Settings file was created by plugin Bomb Rush Radio! v1.7 ## Plugin GUID: kade.bombrushradio [Audio]