Import Playlist To Plex

less than 1 minute read

Description:

So I have been using Plex as my media server for over a month now and it just drives me crazy that I cannot import my playlist from MediaMonkey. I started looking for a solution and finally found one, a python script I could run to fix it!

To Resolve:

  1. Get script at https://github.com/dakusan/PlexPlaylistImporter

  2. On my CentOS 7 VM, I had to install python:

    sudo yum install epel-release  
    sudo yum install python34  
    curl -O https://bootstrap.pypa.io/get-pip.py  
    sudo /usr/bin/python3.4 get-pip.py
    
  3. When I ran the script, it asked me for the full media library path. According to the guide I was able to find it at:

    /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases/com.plexapp.plugins.library.db
    
  4. I then had to point it to my media library path where the .m3u files were:

    /share/my-music/my-playlists/playlist-name.m3u
    
  5. Lastly, since I use Windows, I had to convert \ to /

    sudo pluma playlist-name.m3u  
    # find and replace
    Ex: (Navigate to script dir)
    ./PlexPlaylistImporter.py -p /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases/com.plexapp.plugins.library.db /my-share/my-music/my-playlists/dubstep.m3u
    
  6. If you get the error DB Error: unable to open database file try prefacing the command with sudo.