From 16b28db804915936b8a0c4bcf8cccaa3b7130e05 Mon Sep 17 00:00:00 2001 From: jamied Date: Thu, 2 Oct 2025 03:15:18 -0400 Subject: [PATCH 01/33] added artist field to Song class --- Models/Song.cs | 11 +++++++++++ Services/AudioService.cs | 1 + 2 files changed, 12 insertions(+) diff --git a/Models/Song.cs b/Models/Song.cs index 830c335..7922c6c 100644 --- a/Models/Song.cs +++ b/Models/Song.cs @@ -35,6 +35,17 @@ public Album Album } } + private string _artistName; + public string ArtistName + { + get => _artistName; + set + { + _artistName = value; + OnPropertyChanged(); + } + } + private string _filePath; public string FilePath { diff --git a/Services/AudioService.cs b/Services/AudioService.cs index 466572f..bd86c23 100644 --- a/Services/AudioService.cs +++ b/Services/AudioService.cs @@ -513,6 +513,7 @@ private Song ExtractSongData(TagLib.File tfile, string path, Album album) { Title = tfile.Tag.Title, Album = album, + ArtistName = tfile.Tag.FirstPerformer, FilePath = path, Genre = tfile.Tag.FirstGenre, Duration = tfile.Properties.Duration, From 53848c505d3a6bce029e8a7951be4d0b38429459 Mon Sep 17 00:00:00 2001 From: jamied Date: Thu, 2 Oct 2025 03:26:55 -0400 Subject: [PATCH 02/33] uses album artist, then song artist as fallback --- Services/AudioService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Services/AudioService.cs b/Services/AudioService.cs index bd86c23..2f14d33 100644 --- a/Services/AudioService.cs +++ b/Services/AudioService.cs @@ -462,8 +462,9 @@ public async Task AddSongFromFile(string path) { return null; } + var artistName = !string.IsNullOrWhiteSpace(tfile.Tag.FirstAlbumArtist) ? tfile.Tag.FirstAlbumArtist.Trim() : tfile.Tag.FirstPerformer.Trim(); - var artist = GetArtistOrCreate(tfile.Tag.FirstPerformer); + var artist = GetArtistOrCreate(artistName); var album = GetAlbumOrCreate(artist, tfile.Tag.Album); var song = ExtractSongData(tfile, path, album); From a7641b0a71e126b65fa66a00a0b9e4e8235f4092 Mon Sep 17 00:00:00 2001 From: jamied Date: Thu, 2 Oct 2025 11:38:05 -0400 Subject: [PATCH 03/33] favorite button in now playing --- Pages/NowPlaying.xaml | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/Pages/NowPlaying.xaml b/Pages/NowPlaying.xaml index 98c6d03..ab20199 100644 --- a/Pages/NowPlaying.xaml +++ b/Pages/NowPlaying.xaml @@ -17,6 +17,8 @@ + +