.NET 8 migration

This commit is contained in:
kdeng00
2024-06-09 15:00:47 -04:00
parent ececcb5ba3
commit c4ab90d4eb
12 changed files with 85 additions and 28 deletions
+6 -1
View File
@@ -53,7 +53,12 @@ public class SongStreamController : BaseController
var stream = new FileStream(song.SongPath(), FileMode.Open, FileAccess.Read);
stream.Position = 0;
var filename = $"{song.Title}.mp3";
var filename = song.Filename;
if (string.IsNullOrEmpty(song.Filename))
{
filename = song.GenerateFilename();
}
_logger.LogInformation("Starting to stream song...>");
Console.WriteLine("Starting to streamsong...");