Changes
This commit is contained in:
@@ -30,6 +30,9 @@ namespace Musify.Application.Configuration
|
||||
[Required]
|
||||
public string LargePictures { get; set; } = "LargePictures";
|
||||
|
||||
[Required]
|
||||
public string PresetOriginalPicture { get; set; } = "PresetOriginalPicture.webp";
|
||||
|
||||
[Required]
|
||||
public string PresetSmallPicture { get; set; } = "PresetSmallPicture.webp";
|
||||
|
||||
|
||||
@@ -30,6 +30,9 @@ namespace Musify.Application.Configuration
|
||||
[Required]
|
||||
public string LargePictures { get; set; } = "LargeTracks";
|
||||
|
||||
[Required]
|
||||
public string PresetOriginalPicture { get; set; } = "PresetOriginalPicture.webp";
|
||||
|
||||
[Required]
|
||||
public string PresetSmallPicture { get; set; } = "PresetSmallPicture.webp";
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ namespace Musify.Application.PlayLists.Handlers
|
||||
Name = request.Name,
|
||||
NormalizedName = request.Name.Trim().ToUpperInvariant(),
|
||||
Description = request.Description,
|
||||
OriginalPictureKeyName = playListConfiguration.Routes.PresetOriginalPicture,
|
||||
SmallPictureKeyName = playListConfiguration.Routes.PresetSmallPicture,
|
||||
MediumPictureKeyName = playListConfiguration.Routes.PresetMediumPicture,
|
||||
LargePictureKeyName = playListConfiguration.Routes.PresetLargePicture,
|
||||
@@ -65,6 +66,8 @@ namespace Musify.Application.PlayLists.Handlers
|
||||
playList.Id, string.Join("; ", uploadResult.Errors));
|
||||
return Result.Error($"Failed to upload picture for PlayList with Id {playList.Id} to storage.");
|
||||
}
|
||||
|
||||
playList.OriginalPictureKeyName = pictureStorageKey;
|
||||
logger.LogInformation("Playlist image uploaded successfully for PlayList with Id={PlayListId}.", playList.Id);
|
||||
|
||||
try
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace Musify.Application.Tracks.Handler
|
||||
{
|
||||
Title = request.Title,
|
||||
NormalizedTitle = request.Title.Trim().ToUpperInvariant(),
|
||||
OriginalPictureKeyName = originalPictureKeyName,
|
||||
SmallPictureKeyName = trackConfiguration.Routes.PresetSmallPicture,
|
||||
MediumPictureKeyName = trackConfiguration.Routes.PresetMediumPicture,
|
||||
LargePictureKeyName = trackConfiguration.Routes.PresetLargePicture,
|
||||
|
||||
Reference in New Issue
Block a user