Add options to expand album types by default (#644)

* Add options to expand album types by default

* Remove isAfter and simplify slightly

* Fix display of settings on large screens
This commit is contained in:
ta264 2019-03-05 01:16:56 +00:00 committed by Qstick
parent 1e48ea58b0
commit 1f483c3a3c
7 changed files with 118 additions and 10 deletions

View file

@ -16,6 +16,12 @@ namespace Lidarr.Api.V1.Config
public bool ShowRelativeDates { get; set; }
public bool EnableColorImpairedMode { get; set; }
public bool ExpandAlbumByDefault { get; set; }
public bool ExpandSingleByDefault { get; set; }
public bool ExpandEPByDefault { get; set; }
public bool ExpandBroadcastByDefault { get; set; }
public bool ExpandOtherByDefault { get; set; }
}
public static class UiConfigResourceMapper
@ -33,6 +39,12 @@ namespace Lidarr.Api.V1.Config
ShowRelativeDates = model.ShowRelativeDates,
EnableColorImpairedMode = model.EnableColorImpairedMode,
ExpandAlbumByDefault = model.ExpandAlbumByDefault,
ExpandSingleByDefault = model.ExpandSingleByDefault,
ExpandEPByDefault = model.ExpandEPByDefault,
ExpandBroadcastByDefault = model.ExpandBroadcastByDefault,
ExpandOtherByDefault = model.ExpandOtherByDefault
};
}
}

View file

@ -314,6 +314,41 @@ namespace NzbDrone.Core.Configuration
set { SetValue("EnableColorImpairedMode", value); }
}
public bool ExpandAlbumByDefault
{
get { return GetValueBoolean("ExpandAlbumByDefault", false); }
set { SetValue("ExpandAlbumByDefault", value); }
}
public bool ExpandEPByDefault
{
get { return GetValueBoolean("ExpandEPByDefault", false); }
set { SetValue("ExpandEPByDefault", value); }
}
public bool ExpandSingleByDefault
{
get { return GetValueBoolean("ExpandSingleByDefault", false); }
set { SetValue("ExpandSingleByDefault", value); }
}
public bool ExpandBroadcastByDefault
{
get { return GetValueBoolean("ExpandBroadcastByDefault", false); }
set { SetValue("ExpandBroadcastByDefault", value); }
}
public bool ExpandOtherByDefault
{
get { return GetValueBoolean("ExpandOtherByDefault", false); }
set { SetValue("ExpandOtherByDefault", value); }
}
public bool CleanupMetadataImages
{
get { return GetValueBoolean("CleanupMetadataImages", true); }

View file

@ -57,6 +57,12 @@ namespace NzbDrone.Core.Configuration
string TimeFormat { get; set; }
bool ShowRelativeDates { get; set; }
bool EnableColorImpairedMode { get; set; }
bool ExpandAlbumByDefault { get; set; }
bool ExpandSingleByDefault { get; set; }
bool ExpandEPByDefault { get; set; }
bool ExpandBroadcastByDefault { get; set; }
bool ExpandOtherByDefault { get; set; }
//Internal
bool CleanupMetadataImages { get; set; }