Code cleanup
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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")]
|
||||
|
||||
@@ -37,7 +37,6 @@ namespace Icarus
|
||||
}
|
||||
|
||||
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
||||
// TODO: Need to add Logging support and maybe adding CLI port support
|
||||
Host.CreateDefaultBuilder(args)
|
||||
.ConfigureWebHostDefaults(webBuilder =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user