Added TODO's for checking if Cover art already exists. Added functionality in DirectoryManager to switch to the CoverArt path when explicitly request, otherwise defaults to the music root path. Added skeleton function for CoverArtRepository in the CoverArtRepository and SongManager

This commit is contained in:
amazing-username
2019-07-09 21:03:52 -04:00
parent 0ee1473639
commit f7963237fd
4 changed files with 54 additions and 4 deletions
+19 -2
View File
@@ -160,9 +160,17 @@ namespace Icarus.Controllers.Managers
return songPath;
}
private void Initialize()
private void Initialize(DirectoryTypes dirTypes = DirectoryTypes.Music)
{
_rootSongDirectory = _config.GetValue<string>("RootMusicPath");
switch (dirTypes)
{
case DirectoryTypes.Music:
_rootSongDirectory = _config.GetValue<string>("RootMusicPath");
break;
case DirectoryTypes.CoverArt:
_rootSongDirectory = _config.GetValue<string>("CoverArtPath");
break;
}
}
private bool IsDirectoryEmpty(string path)
@@ -201,5 +209,14 @@ namespace Icarus.Controllers.Managers
return directory;
}
#endregion
#region enums
private enum DirectoryTypes
{
Music = 0,
CoverArt
};
#endregion
}
}