|
|
|
@ -23,16 +23,27 @@ namespace Lidarr.Api.V1.Profiles.Metadata
|
|
|
|
|
.OrderByDescending(l => l.Id)
|
|
|
|
|
.ToList();
|
|
|
|
|
|
|
|
|
|
var primTypes = orderedPrimTypes.Select(v => new ProfilePrimaryAlbumTypeItem {PrimaryAlbumType = v, Allowed = false})
|
|
|
|
|
var orderedRelStatuses = NzbDrone.Core.Music.ReleaseStatus.All
|
|
|
|
|
.OrderByDescending(l => l.Id)
|
|
|
|
|
.ToList();
|
|
|
|
|
|
|
|
|
|
var primTypes = orderedPrimTypes
|
|
|
|
|
.Select(v => new ProfilePrimaryAlbumTypeItem {PrimaryAlbumType = v, Allowed = false})
|
|
|
|
|
.ToList();
|
|
|
|
|
|
|
|
|
|
var secTypes = orderedSecTypes
|
|
|
|
|
.Select(v => new ProfileSecondaryAlbumTypeItem {SecondaryAlbumType = v, Allowed = false})
|
|
|
|
|
.ToList();
|
|
|
|
|
|
|
|
|
|
var secTypes = orderedSecTypes.Select(v => new ProfileSecondaryAlbumTypeItem { SecondaryAlbumType = v, Allowed = false })
|
|
|
|
|
var relStatuses = orderedRelStatuses
|
|
|
|
|
.Select(v => new ProfileReleaseStatusItem {ReleaseStatus = v, Allowed = false})
|
|
|
|
|
.ToList();
|
|
|
|
|
|
|
|
|
|
var profile = new MetadataProfile
|
|
|
|
|
{
|
|
|
|
|
PrimaryAlbumTypes = primTypes,
|
|
|
|
|
SecondaryAlbumTypes = secTypes
|
|
|
|
|
SecondaryAlbumTypes = secTypes,
|
|
|
|
|
ReleaseStatuses = relStatuses
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return profile.ToResource();
|
|
|
|
|