#103: Remove WAV support #105

Merged
kdeng00 merged 12 commits from tsk-103 into master 2025-02-16 17:24:50 -05:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 77030c6347 - Show all commits
@@ -196,6 +196,7 @@ public class SongManager : BaseManager
} }
// Change the name of this method to only focus on wav files // Change the name of this method to only focus on wav files
[Obsolete("Support for uplodaing wav files will end. Use the flac alternative instead - SaveFlacSongToFileSystem(..)")]
public Song SaveSongToFileSystem(IFormFile songFile, IFormFile coverArtData, Song song) public Song SaveSongToFileSystem(IFormFile songFile, IFormFile coverArtData, Song song)
{ {
if (string.IsNullOrEmpty(song.SongDirectory)) if (string.IsNullOrEmpty(song.SongDirectory))
+3 -2
View File
@@ -151,8 +151,9 @@ public class SongDataController : BaseController
switch (song.AudioType) switch (song.AudioType)
{ {
case "wav": case "wav":
song = _songMgr.SaveSongToFileSystem(up.SongData, up.CoverArtData, song); // song = _songMgr.SaveSongToFileSystem(up.SongData, up.CoverArtData, song);
break; // TODO: Make sure the tmp file gets deleted
return BadRequest(".wav files are not supported");
case "flac": case "flac":
song = _songMgr.SaveFlacSongToFileSystem(up.SongData, up.CoverArtData, song); song = _songMgr.SaveFlacSongToFileSystem(up.SongData, up.CoverArtData, song);
break; break;