Skip to content

Commit

Permalink
imp - Populate also the mpeg audio extensions
Browse files Browse the repository at this point in the history
---

We've improved the "add music library" functionality so that it also considers all supported formats.

---

Type: imp
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Sep 19, 2024
1 parent 3643c77 commit b013cfe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BassBoom.Cli/CliBase/PlayerControls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
//

using BassBoom.Basolia.Enumerations;
using BassBoom.Basolia.File;
using BassBoom.Basolia.Format;
using BassBoom.Basolia.Lyrics;
using BassBoom.Basolia.Playback;
Expand Down Expand Up @@ -271,7 +272,7 @@ internal static void PromptForAddDirectory()
if (Directory.Exists(path))
{
int currentPos = Player.position;
var cachedInfos = Directory.GetFiles(path, "*.mp3");
var cachedInfos = Directory.EnumerateFiles(path).Where((pathStr) => FileTools.SupportedExtensions.Contains(Path.GetExtension(pathStr))).ToArray();
if (cachedInfos.Length > 0)
{
foreach (string musicFile in cachedInfos)
Expand Down

0 comments on commit b013cfe

Please sign in to comment.