.NET 8 migration
This commit is contained in:
@@ -39,6 +39,7 @@ public class BaseController : ControllerBase
|
||||
return token;
|
||||
}
|
||||
|
||||
/**
|
||||
[ApiExplorerSettings(IgnoreApi = true)]
|
||||
[Obsolete("Asymmetric key signing for tokens have been deprecated")]
|
||||
protected bool IsTokenValid(string scope)
|
||||
@@ -48,5 +49,6 @@ public class BaseController : ControllerBase
|
||||
|
||||
return tokMgr.IsTokenValid(scope, token);
|
||||
}
|
||||
*/
|
||||
#endregion
|
||||
}
|
||||
|
||||
@@ -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...");
|
||||
|
||||
Reference in New Issue
Block a user