I can't seem to find a way to search an entire library via SDBApplication. I'm making a WPF application to help me organize my music (press this button to mark track as reviewed, press another button to combine these two playcounts favoring the one with the higher bitrate, make sure the song doesn't belong in any playlists, etc.)
I currently have an AutoPlaylist called "All" that contains my entire library. To search, I do this:
Code: Select all
AllSongs = MakeSongListEnumerable(SDB.PlaylistByTitle["All"].Tracks);
//============//
public static List<SDBSongData> MakeSongListEnumerable(SDBSongList songlist) {
var selectedSongList = new List<SDBSongData>();
foreach (var i in Enumerable.Range(0, songlist.Count)) {
selectedSongList.Add(songlist.Item[i]);
}
return selectedSongList;
}
I thought WebSearch was it, but I can't seem to understand it.
Thanks!