private async Task UpdateActorsMetadata(string path, MovieMetadata metadata)
        {
            string            movieFolder  = _fileSystemService.GetParentFolder(path, 1);
            MovieActorsResult actorsResult = await _metadataUpdater.FindCast(metadata.Id);

            UpdateActors(metadata, movieFolder, actorsResult.Cast);
            UpdateCrews(metadata, actorsResult.Crew);
        }
Beispiel #2
0
        /// <summary>
        /// Finds the cast.
        /// </summary>
        /// <param name="movieId">The movie identifier.</param>
        /// <returns></returns>
        public async Task <MovieActorsResult> FindCast(string movieId)
        {
            string            url          = string.Format("3/movie/{0}/credits?api_key={1}", movieId, MovieHelper.ThemoviedbApiKey);
            MovieActorsResult actorsResult = await _restApiService.Get <MovieActorsResult>(url);

            await FixImagesUrl(actorsResult.Cast);

            return(actorsResult);
        }