add context menu actions to search dialog, refactor controller

This commit is contained in:
Drew Weymouth
2025-03-29 13:25:56 -07:00
parent 9ddb5e6e69
commit 31c23490d1
9 changed files with 693 additions and 423 deletions
@@ -101,6 +101,7 @@ func mergeResults(
Name: al.Name,
ArtistName: getNameString(al.Artist, al.Artists),
Size: al.SongCount,
Item: toAlbum(al),
})
}
@@ -111,6 +112,7 @@ func mergeResults(
CoverID: ar.CoverArt,
Name: ar.Name,
Size: ar.AlbumCount,
Item: toArtistFromID3(ar),
})
}
@@ -122,6 +124,7 @@ func mergeResults(
Name: tr.Title,
ArtistName: getNameString(tr.Artist, tr.Artists),
Size: tr.Duration,
Item: toTrack(tr),
})
}
@@ -132,6 +135,7 @@ func mergeResults(
CoverID: pl.CoverArt,
Name: pl.Name,
Size: pl.SongCount,
Item: toPlaylist(pl),
})
}
@@ -149,6 +153,7 @@ func mergeResults(
Type: mediaprovider.ContentTypeRadioStation,
ID: r.ID,
Name: r.Name,
Item: r,
})
}