A blazingly fast way to export audio playlists from Plex. Supports any x86_64 platform that supports .NET Core.
Exports audio playlists for use in other applications. For example Airsonic.
Playlists are exported as a .m3u8 file. Script written in Powershell; supports both Legacy Powershell and Powershell Core.
./PleXport.ps1 -Token 'agf-3ExxxxxxxxxxJ8rN'
./PleXport.ps1
./PleXport.ps1 -TokenFile 'C:\...\token'
A Token file is a plain-text file that contains the Plex Token. No special syntax required. Recommended to ensure the token is secure.
NOTE: that without the
-TokenFile
parameter, the script will still attempt to import a local file for the token. If there is a file in the current directory calledtoken
, then it will be imported. The-Token
parameter takes priority over any Token files.
./PleXport.ps1 -Server 192.168.1.5 -Port 8080
This example uses a local Token file.
./PleXport.ps1 -Path C:\...\playlists
By default, the script will use the current directory. In doing so, will create a directory called playlists
; which will hold the script output. However, the path provided with the -Path
parameter will be the output directory when used. No additional directories will be created.
Param | Description | Default |
---|---|---|
-Server | IPv4 address of the server. | 127.0.0.1 |
-Port | TCP Port for the server. | 32400 |
-Token | Token used to access the Plex APIs. | |
-TokenFile | File containing Plex token. | .\token |
-Path | Output directory for playlists | Current Dir |
You can use the custom path functionality to automatically move all the playlists into Airsonic's Playlist Directory. The output playlists are 'drag-and-drop' compatible with Airsonic, Subsonic, and any other applications that uses .m3u8 files.
- Check the token used is from a user with playlists.
- Ensure the token used is valid.
NOTE: Tokens gathered from app.Plex.tv will not work when connecting via IP.
Open a bug request if you run into any issues!