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:
amazing-username committed 2019-04-30 01:49:43 +00:00
1 parent 4d1013950a
commit c0d2891d86
5 files changed
+95 -18

No files matched your search

+3 -2
View File
@@ -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}");