And if you did buy PlexPass it doesn’t work very well if you have a lot of files or they’re huge. Unless you bought PlexPass, it doesn’t work. However, I highly recommend against it, as I have found that doing this may corrupt the Plex server database).Ĭopyright and coded by Dakusan - See for more information.Have you ever tried to copy your media from Plex to your phone? Or export a playlist from Plex to your phone? (There are, of course, workarounds to this. So for this reason, the script must be ran on the same computer running the Plex server so that it can match the paths. What this script does is derive all the full song paths in a playlist file that you give it, checks those paths against Plex’s database, and then adds the matches in the proper order into the Plex playlist you specified. When you add a song to Plex (through Plex), it stores the song’s full file path in the Plex database. The songs you want to play have to already exist in the Plex database. PlexPlaylistImporter.sh is just included to force proper Unicode (utf-8) encoding and column widths on the console. While the M3U importer (Importers/M3U.py) is the most appropriate to use as a template, I included a second example one (PTL.py) which just pulls in absolute file names with no error checks. Playlist importers just collect the absolute files names, and others can easily be dropped into the “Importers” directory without any other code changes. The only playlist type that is currently supported is Winamp playlists (.m3u). Default= NONEĭo not prompt to create the playlist if it does not already exist. This allows overriding the determined file type. If the file extension is not recognized, the file is parsed as a Winamp playlist (m3u). This is generally “ utf-8”, but may also likely be “ ISO-8859-1”. e OR -playlist_encodingPlaylist_Encoding Note: When passing a parameter string, environmental variables are not processed.%PLEX_PATH%/Plug-in Support/Databases/.db.Defaults: ( %PLEX_PATH% is from the path found from above).If the database is still not found from the given Plex path, the full path to the database is required.%PLEX_HOME%/Library/Application Support/Plex Media Server/.C:/Users/ %USER%/AppData/Local/Plex Media Server/.If it cannot be found, this path needs to be passed explicitly The program tries to guess the path for the Plex data directory.If the given playlist does not already exist, the program will prompt on whether to create it (unless -f is specified).If not given, the program will prompt for it.The name of the playlist in Plex to import to. PlexPlaylistImporter.py Playlist_Path Plex_Playlist_Name C:\Users\%USERNAME%\AppData\Local\Programs\Python\Python%PYTHON_VERSION%\DLLs.C:\Program Files (x86)\Python%PYTHON_VERSION%-32\DLLs.For a Python for Windows install, the DLL location will most likely be located at one of the following locations:.If running this mentions something about “ no such module : FTS4”, you may need to replace the sqlite3.dll or sqlite3.so for your Python, which can be found at.If running through the Python source, The Python sqlite3 lib is required, but it should come with Python.While running the windows executable, if you get an error of “The program can't start because MSVCR100.dll is missing.”, download the “ Microsoft Visual C 2010 Redistributable Package (x86)”.While this script requires Python 3 (compiled against v3.4), a stand-alone Windows binary version is also available on the URL at the top of this file.You can run this by directly dragging playlists onto it. Plex’s music organization is counterintuitive to this organizational structure, and Plex currently does not have an easy way to import external playlists. My music directories have been growing for over 2 decades in a folder based hierarchy, often using playlists for organization. Plex Playlist Importer - v1.1.0.x Import playlists into Plex
0 Comments
Leave a Reply. |