src/BandcampDownloader/Core/PlaylistCreator.cs
/// <summary>
/// Returns the playlist in pls format.
/// </summary>
Returns the playlist in pls format.
Returns the playlist in pls format .
private string CreatePlsPlaylist() {
            var playlist = new PlsPlaylist();
            foreach (Track track in _album.Tracks) {
                playlist.PlaylistEntries.Add(new PlsPlaylistEntry() {
                    Length = TimeSpan.FromSeconds(track.Duration),
                    Path = Path.GetFileName(track.Path),
                    Title = track.Title,
                });
            }
            return new PlsContent().ToText(playlist);
        }
private string CreatePlsPlaylist ( ) { var playlist = new PlsPlaylist ( ) ; foreach ( Track track in _album . Tracks ) { playlist . PlaylistEntries . Add ( new PlsPlaylistEntry ( ) { Length = TimeSpan . FromSeconds ( track . Duration ) , Path = Path . GetFileName ( track . Path ) , Title = track . Title , } ) ; } return new PlsContent ( ) . ToText ( playlist ) ; }
Returns the playlist in pls format.
Returns the playlist in pls format .