/// <summary>
        /// Deletes the images of the movie located at the specified path.
        /// </summary>
        /// <param name="path">The path.</param>
        public async Task Delete(string path)
        {
            string posterPath = MovieHelper.GetMoviePosterPath(path);
            await _fileSystemService.DeleteFile(posterPath);

            string fanartPath = MovieHelper.GetMovieFanartPath(path);
            await _fileSystemService.DeleteFile(fanartPath);
        }
        /// <summary>
        /// Updates the images of the movie located at the specified path.
        /// </summary>
        /// <param name="path">The movie path.</param>
        /// <param name="movie">The movie metadata.</param>
        public async Task Update(string path, FullMovie movie)
        {
            string posterPath = MovieHelper.GetMoviePosterPath(path);

            await UpdateImageIfNeeded(posterPath, movie.PosterPath);

            string fanartPath = MovieHelper.GetMovieFanartPath(path);

            await UpdateImageIfNeeded(fanartPath, movie.BackdropPath);
        }
        /// <summary>
        /// Gets the movie set.
        /// </summary>
        /// <param name="setName">Name of the set.</param>
        /// <returns></returns>
        public async Task <MovieSet> GetMovieSet(string setName)
        {
            MovieSet set = new MovieSet();

            set.Name         = setName;
            set.BackdropPath = await MovieHelper.GetMovieSetFanartPath(_fileSystemService, setName);

            set.PosterPath = await MovieHelper.GetMovieSetPosterPath(_fileSystemService, setName);

            return(set);
        }
 private void SetImagesPath(string path, MovieMetadata metadata)
 {
     metadata.ImageFanartPath = MovieHelper.GetMovieFanartPath(path);
     metadata.ImagePosterPath = MovieHelper.GetMoviePosterPath(path);
 }
 public async Task <string> GetMovieSetArtworkFolder()
 {
     return(await MovieHelper.GetMovieSetFolder(_fileSystemService));
 }