Update MediaBrowser.XbmcMetadata/Parsers/BaseNfoParser.cs

Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
David Ullmer 2021-01-24 13:35:08 +01:00 committed by GitHub
parent 454d82c52c
commit 39f9a7981a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1036,34 +1036,18 @@ namespace MediaBrowser.XbmcMetadata.Parsers
if (!string.IsNullOrWhiteSpace(val))
{
switch (val)
type = val switch
{
case PersonType.Composer:
type = PersonType.Composer;
break;
case PersonType.Conductor:
type = PersonType.Conductor;
break;
case PersonType.Director:
type = PersonType.Director;
break;
case PersonType.Lyricist:
type = PersonType.Lyricist;
break;
case PersonType.Producer:
type = PersonType.Producer;
break;
case PersonType.Writer:
type = PersonType.Writer;
break;
case PersonType.GuestStar:
type = PersonType.GuestStar;
break;
PersonType.Composer => PersonType.Composer,
PersonType.Conductor => PersonType.Conductor,
PersonType.Director => PersonType.Director,
PersonType.Lyricist => PersonType.Lyricist,
PersonType.Producer => PersonType.Producer,
PersonType.Writer => PersonType.Writer,
PersonType.GuestStar => PersonType.GuestStar,
// unknown type --> actor
default:
type = PersonType.Actor;
break;
}
_ => PersonType.Actor
};
}
break;