Switched to the TagLib library for stripping metadata. Included TODO for updating a song's metadata for both the database and the tag of the MP3 file #36
This commit is contained in:
@@ -218,7 +218,6 @@ namespace Icarus.Controllers.Managers
|
||||
_song.SongPath = filePath;
|
||||
|
||||
Console.WriteLine($"Writing song to the directory: {filePath}");
|
||||
Console.WriteLine("Song successfully saved");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -404,7 +403,9 @@ namespace Icarus.Controllers.Managers
|
||||
Console.WriteLine("Retrieving song and storing it in memory");
|
||||
await song.CopyToAsync(fileStream);
|
||||
Console.WriteLine($"Retrieving metadata of song from filepath {filePath}");
|
||||
_song = RetrieveMetaData(filePath);
|
||||
MetadataRetriever meta = new MetadataRetriever();
|
||||
_song = meta.RetrieveMetaData(filePath);
|
||||
//_song = RetrieveMetaData(filePath);
|
||||
Console.WriteLine("Assigning song filename");
|
||||
_song.Filename = song.FileName;
|
||||
Console.WriteLine($"Song filename retrieved: {song.FileName}");
|
||||
|
||||
Reference in New Issue
Block a user