mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Update ReleaseStatus
This commit is contained in:
parent
e17e3633f8
commit
c38ad65640
2 changed files with 20 additions and 4 deletions
|
@ -39,9 +39,11 @@ namespace NzbDrone.Core.Datastore.Migration
|
||||||
public enum ReleaseStatus12
|
public enum ReleaseStatus12
|
||||||
{
|
{
|
||||||
Official = 0,
|
Official = 0,
|
||||||
Promotional = 1,
|
Promotion = 1,
|
||||||
Bootleg = 2,
|
Bootleg = 2,
|
||||||
Pseudo = 3
|
Pseudo = 3,
|
||||||
|
Withdrawn = 4,
|
||||||
|
Cancelled = 5
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ProfileUpdater11
|
public class ProfileUpdater11
|
||||||
|
@ -91,7 +93,7 @@ namespace NzbDrone.Core.Datastore.Migration
|
||||||
},
|
},
|
||||||
new ProfileItem12
|
new ProfileItem12
|
||||||
{
|
{
|
||||||
ReleaseStatus = (int)ReleaseStatus12.Promotional,
|
ReleaseStatus = (int)ReleaseStatus12.Promotion,
|
||||||
Allowed = false
|
Allowed = false
|
||||||
},
|
},
|
||||||
new ProfileItem12
|
new ProfileItem12
|
||||||
|
@ -103,6 +105,16 @@ namespace NzbDrone.Core.Datastore.Migration
|
||||||
{
|
{
|
||||||
ReleaseStatus = (int)ReleaseStatus12.Pseudo,
|
ReleaseStatus = (int)ReleaseStatus12.Pseudo,
|
||||||
Allowed = false
|
Allowed = false
|
||||||
|
},
|
||||||
|
new ProfileItem12
|
||||||
|
{
|
||||||
|
ReleaseStatus = (int)ReleaseStatus12.Withdrawn,
|
||||||
|
Allowed = false
|
||||||
|
},
|
||||||
|
new ProfileItem12
|
||||||
|
{
|
||||||
|
ReleaseStatus = (int)ReleaseStatus12.Cancelled,
|
||||||
|
Allowed = false
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,13 +69,17 @@ namespace NzbDrone.Core.Music
|
||||||
public static ReleaseStatus Promotion => new ReleaseStatus(1, "Promotion");
|
public static ReleaseStatus Promotion => new ReleaseStatus(1, "Promotion");
|
||||||
public static ReleaseStatus Bootleg => new ReleaseStatus(2, "Bootleg");
|
public static ReleaseStatus Bootleg => new ReleaseStatus(2, "Bootleg");
|
||||||
public static ReleaseStatus Pseudo => new ReleaseStatus(3, "Pseudo-Release");
|
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>
|
public static readonly List<ReleaseStatus> All = new List<ReleaseStatus>
|
||||||
{
|
{
|
||||||
Official,
|
Official,
|
||||||
Promotion,
|
Promotion,
|
||||||
Bootleg,
|
Bootleg,
|
||||||
Pseudo
|
Pseudo,
|
||||||
|
Withdrawn,
|
||||||
|
Cancelled
|
||||||
};
|
};
|
||||||
|
|
||||||
public static ReleaseStatus FindById(int id)
|
public static ReleaseStatus FindById(int id)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue