Kavita+ Comic Metadata Matching (#3740)
This commit is contained in:
parent
4521965315
commit
ed154e4768
46 changed files with 4207 additions and 98 deletions
|
@ -234,4 +234,25 @@ public class Chapter : IEntityDate, IHasReadTimeEstimate, IHasCoverImage
|
|||
PrimaryColor = string.Empty;
|
||||
SecondaryColor = string.Empty;
|
||||
}
|
||||
|
||||
public bool IsPersonRoleLocked(PersonRole role)
|
||||
{
|
||||
return role switch
|
||||
{
|
||||
PersonRole.Character => CharacterLocked,
|
||||
PersonRole.Writer => WriterLocked,
|
||||
PersonRole.Penciller => PencillerLocked,
|
||||
PersonRole.Inker => InkerLocked,
|
||||
PersonRole.Colorist => ColoristLocked,
|
||||
PersonRole.Letterer => LettererLocked,
|
||||
PersonRole.CoverArtist => CoverArtistLocked,
|
||||
PersonRole.Editor => EditorLocked,
|
||||
PersonRole.Publisher => PublisherLocked,
|
||||
PersonRole.Translator => TranslatorLocked,
|
||||
PersonRole.Imprint => ImprintLocked,
|
||||
PersonRole.Team => TeamLocked,
|
||||
PersonRole.Location => LocationLocked,
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(role), role, null)
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue