/// <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); }
private void SetImagesPath(string path, MovieMetadata metadata) { metadata.ImageFanartPath = MovieHelper.GetMovieFanartPath(path); metadata.ImagePosterPath = MovieHelper.GetMoviePosterPath(path); }