src/BandcampDownloader/Core/PlaylistCreator.cs
/// <summary>
/// Saves the playlist to a file.
/// </summary>
Saves the playlist to a file.
Saves the playlist to a file .
public void SavePlaylistToFile() {
            string fileContent;
            switch (App.UserSettings.PlaylistFormat) {
                case PlaylistFormat.m3u:
                    fileContent = CreateM3uPlaylist();
                    break;
                case PlaylistFormat.pls:
                    fileContent = CreatePlsPlaylist();
                    break;
                case PlaylistFormat.wpl:
                    fileContent = CreateWplPlaylist();
                    break;
                case PlaylistFormat.zpl:
                    fileContent = CreateZplPlaylist();
                    break;
                default:
                    throw new NotImplementedException();
            }
            File.WriteAllText(_album.PlaylistPath, fileContent, Encoding.UTF8);
        }
public void SavePlaylistToFile ( ) { string fileContent ; switch ( App . UserSettings . PlaylistFormat ) { case PlaylistFormat . m3u : fileContent = CreateM3uPlaylist ( ) ; break ; case PlaylistFormat . pls : fileContent = CreatePlsPlaylist ( ) ; break ; case PlaylistFormat . wpl : fileContent = CreateWplPlaylist ( ) ; break ; case PlaylistFormat . zpl : fileContent = CreateZplPlaylist ( ) ; break ; default : throw new NotImplementedException ( ) ; } File . WriteAllText ( _album . PlaylistPath , fileContent , Encoding . UTF8 ) ; }
Saves the playlist to a file.
Saves the playlist to a file .