Update ReleaseStatus

This commit is contained in:
Tyler Vigario 2024-04-14 18:11:22 -07:00
parent e17e3633f8
commit c38ad65640
2 changed files with 20 additions and 4 deletions

View File

@ -39,9 +39,11 @@ namespace NzbDrone.Core.Datastore.Migration
public enum ReleaseStatus12
{
Official = 0,
Promotional = 1,
Promotion = 1,
Bootleg = 2,
Pseudo = 3
Pseudo = 3,
Withdrawn = 4,
Cancelled = 5
}
public class ProfileUpdater11
@ -91,7 +93,7 @@ namespace NzbDrone.Core.Datastore.Migration
},
new ProfileItem12
{
ReleaseStatus = (int)ReleaseStatus12.Promotional,
ReleaseStatus = (int)ReleaseStatus12.Promotion,
Allowed = false
},
new ProfileItem12
@ -103,6 +105,16 @@ namespace NzbDrone.Core.Datastore.Migration
{
ReleaseStatus = (int)ReleaseStatus12.Pseudo,
Allowed = false
},
new ProfileItem12
{
ReleaseStatus = (int)ReleaseStatus12.Withdrawn,
Allowed = false
},
new ProfileItem12
{
ReleaseStatus = (int)ReleaseStatus12.Cancelled,
Allowed = false
}
};
}

View File

@ -69,13 +69,17 @@ namespace NzbDrone.Core.Music
public static ReleaseStatus Promotion => new ReleaseStatus(1, "Promotion");
public static ReleaseStatus Bootleg => new ReleaseStatus(2, "Bootleg");
public static ReleaseStatus Pseudo => new ReleaseStatus(3, "Pseudo-Release");
public static ReleaseStatus Withdrawn => new ReleaseStatus(4, "Withdrawn");
public static ReleaseStatus Cancelled => new ReleaseStatus(5, "Cancelled");
public static readonly List<ReleaseStatus> All = new List<ReleaseStatus>
{
Official,
Promotion,
Bootleg,
Pseudo
Pseudo,
Withdrawn,
Cancelled
};
public static ReleaseStatus FindById(int id)