Download the files for a plex playlist and optionally convert to MP3
You must generate a CSV file with your playlist information. This is to be done with WebTools-NG.
Steps:
- Sign into your Plex server
- Select 'ExportTools' in the left sidebar
- Select your server in the header
- Select Export Type: Playlist
- Select Sub Type: Audio
- Select Media Library: <Your Playlist Name>
- Select Export Level: All
- Select 'Export Media'
You may also need to go to settings and set the export to be 'CSV'.
Then follow the script steps:
- Copy that csv file to a folder
- Change the name to 'plex.csv'
- Listed in the file will be the prefix to your music, if you're running the script directly on your Plex server set "USE_PATH_REPLACEMENT" to False
- Otherwise inspect the column "Part File Combined" in the csv and use the replacement config items to change it to a valid path on your system
- Run the script
There are several configuration items which are self-explanatory.
This is designed for Python 3.10.6, you should be able to use anything after about 3.6 with no issues.
Ensure you have ffmpeg installed if you are performing conversion. This requires no external python dependencies so should just 'work'.
python plex-playlist-downloader.py
