Moved playlist commands to view model.

This commit is contained in:
2025-03-14 22:59:15 -04:00
parent bd9b30abbd
commit 7c70eb3814
9 changed files with 565 additions and 23 deletions

View File

@@ -95,11 +95,11 @@ public class BassAudioEngine : IAudioEngine, IDisposable
_mediaPlayer.PropertyChanged += OnMediaPlayerPropertyChanged;
List<string> supportedFormats = [.. Bass.SupportedFormats.Split(';')];
supportedFormats.Add(".aac");
supportedFormats.Add(".m4a");
supportedFormats.Add(".flac");
supportedFormats.Add(".opus");
supportedFormats.Add(".wma");
//supportedFormats.Add(".aac");
//supportedFormats.Add(".m4a");
supportedFormats.Add("*.flac");
//supportedFormats.Add(".opus");
//supportedFormats.Add(".wma");
SupportedFormats = [.. supportedFormats];

View File

@@ -9,10 +9,10 @@
<ItemGroup>
<PackageReference Include="ManagedBass" Version="3.1.1" />
<PackageReference Include="ManagedBass.Flac" Version="3.1.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.2" />
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="9.0.2" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="9.0.2" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.3" />
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="9.0.3" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="9.0.3" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.3" />
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
<PackageReference Include="TagLibSharp" Version="2.3.0" />
</ItemGroup>

View File

@@ -4,6 +4,6 @@ namespace Harmonia.Core.Playlists;
public class PlaylistSong(Song song)
{
public string UID { get; } = Guid.NewGuid().ToString();
public string UID { get; init; } = Guid.NewGuid().ToString();
public Song Song { get; init; } = song;
}