Code cleanup

This commit is contained in:
kdeng00
2021-12-29 14:13:38 -05:00
parent 3a6e0f64bc
commit 5669cdbdd0
4 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ namespace Icarus.Controllers.Managers
return artistPath;
}
//TODO: Change this so the song's metadata is not being used
public string GenerateSongPath(Song song)
{
_logger.Info("Generating song path");
+1 -1
View File
@@ -232,7 +232,7 @@ namespace Icarus.Controllers.Managers
var meta = new MetadataRetriever();
song.Duration = meta.RetrieveSongDuration(song.SongPath());
// const int trackCount = meta.RetrieveTrackCount(song.)
meta.UpdateMetadata(song, song);
meta.UpdateCoverArt(song, coverArt);
+1
View File
@@ -164,6 +164,7 @@ namespace Icarus.Controllers.V1
{
[FromForm(Name = "file")]
public IFormFile SongData { get; set; }
// TODO: Think about making this optional and if it is not provided, use the stock cover art
[FromForm(Name = "cover")]
public IFormFile CoverArtData { get; set; }
[FromForm(Name = "metadata")]