Esempio n. 1
0
        private bool DownloadMetadata(PersonInfo i, PeopleMetadataOptions options)
        {
            if (i.IsType(PersonType.Actor))
            {
                return(options.DownloadActorMetadata);
            }
            if (i.IsType(PersonType.Director))
            {
                return(options.DownloadDirectorMetadata);
            }
            if (i.IsType(PersonType.Composer))
            {
                return(options.DownloadComposerMetadata);
            }
            if (i.IsType(PersonType.Writer))
            {
                return(options.DownloadWriterMetadata);
            }
            if (i.IsType(PersonType.Producer))
            {
                return(options.DownloadProducerMetadata);
            }
            if (i.IsType(PersonType.GuestStar))
            {
                return(options.DownloadGuestStarMetadata);
            }

            return(options.DownloadOtherPeopleMetadata);
        }