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:
@@ -79,6 +79,11 @@ namespace Icarus.Controllers.V1
|
||||
YearRepository yearStore = HttpContext.RequestServices
|
||||
.GetService(typeof(YearRepository)) as YearRepository;
|
||||
|
||||
CoverArtRepository CoverArtRepository = HttpContext
|
||||
.RequestServices
|
||||
.GetService
|
||||
(typeof(CoverArtRepository)) as CoverArtRepository;
|
||||
|
||||
Console.WriteLine("Uploading song...");
|
||||
_logger.LogInformation("Uploading song...");
|
||||
|
||||
@@ -92,7 +97,7 @@ namespace Icarus.Controllers.V1
|
||||
|
||||
await _songMgr.SaveSongToFileSystem(sng, songRepository,
|
||||
albumStoreContext, artistStoreContext,
|
||||
genreStore, yearStore);
|
||||
genreStore, yearStore, CoverArtRepository);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user