#93: Add flac support #101

Merged
kdeng00 merged 25 commits from tsk-93 into master 2024-07-27 13:19:12 -04:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit 829eb2925b - Show all commits
+4 -2
View File
@@ -210,8 +210,10 @@ public class SongManager : BaseManager
// Change the name of this method to only focus on wav files
public void SaveSongToFileSystem(IFormFile songFile, IFormFile coverArtData, Song song)
{
song.SongDirectory = _tempDirectoryRoot;
song.DateCreated = DateTime.Now;
if (string.IsNullOrEmpty(song.SongDirectory))
{
song.SongDirectory = _tempDirectoryRoot;
}
if (string.IsNullOrEmpty(song.Filename))
{
+1
View File
@@ -133,6 +133,7 @@ public class SongDataController : BaseController
var fileType = meta.FileExtensionType(tmpSong.SongPath());
song.Filename = tmpSong.Filename;
song.SongDirectory = tmpSong.SongDirectory;
song.DateCreated = tmpSong.DateCreated;
switch (fileType)
{