PlaylistsNET 1.3.1

.NET 6.0 .NET Standard 1.4 .NET Framework 4.8
dotnet add package PlaylistsNET --version 1.3.1
NuGet\Install-Package PlaylistsNET -Version 1.3.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PlaylistsNET" Version="1.3.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PlaylistsNET --version 1.3.1
#r "nuget: PlaylistsNET, 1.3.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install PlaylistsNET as a Cake Addin
#addin nuget:?package=PlaylistsNET&version=1.3.1

// Install PlaylistsNET as a Cake Tool
#tool nuget:?package=PlaylistsNET&version=1.3.1

PlaylistsNET

Simple library for reading and writing playlist's files. Supported formats: m3u, pls, wpl, zpl.

Install

Nuget https://www.nuget.org/packages/PlaylistsNET

Examples

Read

WplContent content = new WplContent();
WplPlaylist playlist = content.GetFromStream(stream);
// or
var parser = PlaylistParserFactory.GetPlaylistParser(".wpl");
IBasePlaylist playlist = parser.GetFromStream(stream);

List<string> paths = playlist.GetTracksPaths();

Save

M3uPlaylist playlist = new M3uPlaylist();
playlist.IsExtended = true;
playlist.PlaylistEntries.Add(new M3uPlaylistEntry()
{
    Album = "New album",
    AlbumArtist = "",
    Duration = TimeSpan.FromSeconds(175),
    Path = @"C:\Music\song.mp3",
    Title = "Track Title"
});

M3uContent content = new M3uContent();
string text = content.ToText(playlist);
// or
string text = PlaylistToTextHelper.ToText(playlist);

/*
#EXTM3U
#EXTALB:New album
#EXTINF:175,Track Title
C:\Music\song.mp3
*/
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Universal Windows Platform uap uap10.0
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.8

    • No dependencies.
  • .NETStandard 1.4

  • .NETStandard 2.0

    • No dependencies.
  • net6.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on PlaylistsNET:

Package Downloads
AmiIptvParser

A IptvParser library for parser and manage iptv list in m3u8 format

GitHub repositories (5)

Showing the top 5 popular GitHub repositories that depend on PlaylistsNET:

Repository Stars
jellyfin/jellyfin
The Free Software Media System
MediaBrowser/Emby
Emby Server is a personal media server with apps on just about every device.
Otiel/BandcampDownloader
A Windows app used to download albums from Bandcamp.
Splamy/TS3AudioBot
Advanced Musicbot for Teamspeak 3
vesoapp/veso
Open source media server.
Version Downloads Last updated
1.3.1 15,604 12/10/2022
1.3.0 162 12/10/2022
1.2.1 43,517 5/5/2022
1.2.0 295 5/5/2022
1.1.3 98,602 11/12/2020
1.1.2 18,045 7/17/2020
1.1.1 396 7/17/2020
1.1.0 381 7/17/2020
1.0.6 12,380 4/25/2020
1.0.5 2,270 2/12/2020
1.0.4 34,845 4/24/2019
1.0.3 2,155 3/11/2019
1.0.2 14,109 6/30/2018
1.0.1 826 6/25/2018
1.0.0 996 4/11/2018

Add ToText support for HLS playlists