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
+5 -11
View File
@@ -68,20 +68,14 @@ namespace Icarus.Controllers
return song;
}
[HttpPost]
public void Post([FromBody] Song song)
{
MusicStoreContext context = HttpContext
.RequestServices
.GetService(typeof(MusicStoreContext))
as MusicStoreContext;
context.SaveSong(song);
}
[HttpPut("{id}")]
public void Put(int id, [FromBody] Song song)
public IActionResult Put(int id, [FromBody] Song song)
{
// TODO: Implement updating of song metadata
SongResult songResult = new SongResult();
return Ok(songResult);
}
[HttpDelete("{id}")]