And now it builds and runs
This commit is contained in:
@ -13,14 +13,14 @@ namespace Aurora.Backend.Services
|
||||
#region Fields
|
||||
private string _pathName = "/Users/brandonwatson/Music/iTunes/iTunes Media/Music";
|
||||
private string _extensions = ".wav,.mp3,.aiff,.flac,.m4a,.m4b,.wma";
|
||||
private Dictionary<string, Song> _library;
|
||||
private Dictionary<string, BaseSong> _library;
|
||||
|
||||
|
||||
#endregion Fields
|
||||
|
||||
public LibraryService()
|
||||
{
|
||||
_library = new Dictionary<string, Song>();
|
||||
_library = new Dictionary<string, BaseSong>();
|
||||
LoadLibrary();
|
||||
}
|
||||
|
||||
@ -28,10 +28,10 @@ namespace Aurora.Backend.Services
|
||||
/// Gets the songs.
|
||||
/// </summary>
|
||||
/// <returns>The songs.</returns>
|
||||
public ObservableCollection<Song> GetLibrary()
|
||||
public ObservableCollection<BaseSong> GetLibrary()
|
||||
{
|
||||
ObservableCollection<Song> collection = new ObservableCollection<Song>();
|
||||
foreach (KeyValuePair<string, Song> pair in _library)
|
||||
ObservableCollection<BaseSong> collection = new ObservableCollection<BaseSong>();
|
||||
foreach (KeyValuePair<string, BaseSong> pair in _library)
|
||||
{
|
||||
collection.Add(pair.Value);
|
||||
}
|
||||
@ -51,7 +51,7 @@ namespace Aurora.Backend.Services
|
||||
{
|
||||
TagLib.File tagFile = TagLib.File.Create(file.FullName);
|
||||
|
||||
Song song = new Song(file)
|
||||
BaseSong song = new LocalSong(file)
|
||||
{
|
||||
Title = tagFile.Tag.Title,
|
||||
Album = tagFile.Tag.Album,
|
||||
|
Reference in New Issue
Block a user