src/BandcampDownloader/Model/Track.cs
/// <summary>
/// Returns the file name to be used for the track from the file name format saved in the UserSettings, by
/// replacing the placeholders strings with their corresponding values. The returned file name DOES contain the extension.
/// </summary>
Returns the file name to be used for the track from the file name format saved in the UserSettings, by
replacing the placeholders strings with their corresponding values. The returned file name DOES contain the extension.
Returns the file name to be used for the track from the file name format saved in the UserSettings by replacing the placeholders strings with their corresponding values . The returned file name DOES contain the extension .
private string ParseTrackFileName() {
            string fileName = App.UserSettings.FileNameFormat
                .Replace("{year}", Album.ReleaseDate.Year.ToString())
                .Replace("{month}", Album.ReleaseDate.Month.ToString("00"))
                .Replace("{day}", Album.ReleaseDate.Day.ToString("00"))
                .Replace("{album}", Album.Title)
                .Replace("{artist}", Album.Artist)
                .Replace("{title}", Title)
                .Replace("{tracknum}", Number.ToString("00"));
            return fileName.ToAllowedFileName();
        }
private string ParseTrackFileName ( ) { string fileName = App . UserSettings . FileNameFormat . Replace ( " " , Album . ReleaseDate . Year . ToString ( ) ) . Replace ( " " , Album . ReleaseDate . Month . ToString ( " " ) ) . Replace ( " " , Album . ReleaseDate . Day . ToString ( " " ) ) . Replace ( " " , Album . Title ) . Replace ( " " , Album . Artist ) . Replace ( " " , Title ) . Replace ( " " , Number . ToString ( " " ) ) ; return fileName . ToAllowedFileName ( ) ; }
Returns the file name to be used for the track from the file name format saved in the UserSettings, by
replacing the placeholders strings with their corresponding values.
Returns the file name to be used for the track from the file name format saved in the UserSettings by replacing the placeholders strings with their corresponding values .