public override string GetAudioName(EAC3ToConfiguration eac3toConfiguration, BluRayTitleAudio audio, string filesOutputPath, string paddedEpisodeNumber, string episodeName)
{
if (_currentMovieRemuxTemplate == null)
throw new NullReferenceException("Current Movie Template is Null.");
StringBuilder sb = new StringBuilder();
if (eac3toConfiguration.IsExtractForRemux == true && eac3toConfiguration.IfIsExtractForRemuxIsItForAMovie)
{
string tag = this.GetFormattedTag(eac3toConfiguration, paddedEpisodeNumber);
string audioName = string.Format("{0}{1}{2}{3}{4}{5}{6}",
_currentMovieRemuxTemplate.SeriesName,
this.GetFormattedYear(eac3toConfiguration),
this.GetFormattedVideoResolution(eac3toConfiguration),
this.GetFormattedCountry(eac3toConfiguration),
this.GetFormattedMedium(eac3toConfiguration),
this.GetFormattedVideoFormat(eac3toConfiguration),
this.GetFormattedAuditoType(eac3toConfiguration));
sb.Append(string.Format("\"{0}\\{1}{2} {3}{4}-{5}{6}.{7}\"", filesOutputPath, this.AddWordSeparator(eac3toConfiguration.IsExtractForRemux, _currentMovieRemuxTemplate.UsePeriodsInFileName, audioName.Trim().RemoveDoubleSpaces()), tag, audio.Language, paddedEpisodeNumber, audio.Id.RemoveColons(),
this.GetAudioCommentary(audio), _audioService.GetAudioExtension(audio.AudioType)));
}
return sb.ToString();
}