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
2019-04-30 01:49:43 +00:00
parent 4d1013950a
commit c0d2891d86
5 changed files with 95 additions and 18 deletions
+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}");