public Task <IEnumerable <RemoteImageInfo> > GetImages(BaseItem item, CancellationToken cancellationToken)
        {
            var infos = new List <RemoteImageInfo>();

            var person = AniDbSeriesProvider.GetPersonInfo(_paths.CachePath, item.Name);

            if (person != null)
            {
                infos.Add(new RemoteImageInfo
                {
                    Url          = person.Image,
                    Type         = ImageType.Primary,
                    ProviderName = Name
                });
            }

            return(Task.FromResult <IEnumerable <RemoteImageInfo> >(infos));
        }
        public Task <MetadataResult <Person> > GetMetadata(PersonLookupInfo info, CancellationToken cancellationToken)
        {
            var result = new MetadataResult <Person>();

            if (!string.IsNullOrEmpty(info.ProviderIds.GetOrDefault(ProviderNames.AniDb)))
            {
                return(Task.FromResult(result));
            }

            var person = AniDbSeriesProvider.GetPersonInfo(_paths.CachePath, info.Name);

            if (!string.IsNullOrEmpty(person?.Id))
            {
                result.Item        = new Person();
                result.HasMetadata = true;

                result.Item.SetProviderId(ProviderNames.AniDb, person.Id);
            }

            return(Task.FromResult(result));
        }