Music Playlist

Hi Chrisjan

Do you have ask a Ninja?

@Chrisjan Thank you

The new Plex 1.8 update for Windows Phone supports the native playlists now.  Being that I only use Plex for music on my phone, (not interested in any of the video stuff), this is basically the greatest update to date.  I'm so excited in fact I'm not even going to whine about having to recreate all my playlists I made with Chrisjan's channel hack.  Thanks again Chrisjan for making that.  Long live playlists, long live Plex!

The new Plex 1.8 update for Windows Phone supports the native playlists now.  Being that I only use Plex for music on my phone, (not interested in any of the video stuff), this is basically the greatest update to date.  I'm so excited in fact I'm not even going to whine about having to recreate all my playlists I made with Chrisjan's channel hack.  Thanks again Chrisjan for making that.  Long live playlists, long live Plex!

I already saw that.

I still haven't found any API for manipulating the new plex playlist but I have found a way to manipulate / create the new plex playlists by directly making changes in the plex database 'com.plexapp.plugins.library.db' (actually found it in 'MovieFan's Database Tool for Plex').
This will allow me to convert the channel playlists into the new plex playlists with the standalone playlist manager. This would also mean that the playlist manager can be used to create and maintain the plex playlist pretty much the same way as it currently does for the channel playlst (including the import option).
 
Possibly making changes directly to this database while plex is running can be a problem (not even sure if plex will lock the database), but for manipulating playlists, PM needs access to a running PMS in order to get the media information!
Therefore I was thinking about the best way to implement this. I've come up with a few possible scenario's:

Note: The PlaylistManager (PM) will get a new setting to hold the name and location of the plex database to use. This could either be the actual plex database (depending on your PMS server) or a copy.

  • PM works directly in the plex database.

danagerous?

  • PM stores playlists locally (in xml files) and get's an option to transfer / update those playlists into the plex database. Process would be like:
  1. [PM] Perform playlist maintenance while plex is running
  2. [PMS] Stop PMS
  3. [OS] Copy the PMS database to the plex database location for PM (only if not working directly on the PMS database)
  4. [PM] Transfer the playlists into the database
  5. [OS] copy the PM database back to PMS (obviously only if ....)
  6. [PMS] Restart PMS
  • PM stores playlists locally (in xml files) and can create sql scripts that can be executed later against the plex database

Let me know if you think this could be useful and what would be the best way to go (or maybe suggest other options).
 

For me that's sounds good. But I think  external XML is better. If it Change somthing on the DB. With this File it stop working. Otherwise maby you kill the db slowly?!

But your Function as Channel rest? Because Plex has no DRM Renderer. And with UPNPBubble I can't see the Plex Playlist!

Best Regards

Röndi

PlaylistManager can now be used to maintain native plex playlists. PM stores playlists locally (in xml files)

The following features are available

  1. Import playlists from the Music Playlist Channel into plex playlists
    Note: This requires either the Music Playlist channel to be installed on PMS
             OR access to the data folder (or a copy) of the music playlist channel, typically:
                ($Plex Media Server)\Plug-in Support\Data\com.plexapp.plugins.playlist\DataItems
  2. Create / maintain playlists (all stored locally at ($UserAppDataLocal)\PlexMusicPlaylists).
    Note: This requires connection to the running Plex Media Server where playlists are targetted for
  3. Generate SQL file per playlist with all sql commands to update / insert a playlist to the plex database
  4. and/or Update the sqlite database directly from the playlist manager

Hi Chrisjan

I have installed the new PlaylistManager.

When I say on config Plex Nativ. I see my direct generated Test Playlist. But I can’t manipulate something.

When I say on Config Plex Channel. Nothing appear. I can't see all my Playlist. I can't manipulate nothing.

For tried I copy the DB localy but nothing help.

I have a Synology Nas and a Windows Computer.

Any Idea?

Best Regards

Röndi

Hi Röndi,

Did you connect to your server (still doesn't do that automatically).

Manipulating playlists still needs a connection to you PMS.

Chrisjan

When using an UNC path for the .db file, make sure to use forward slashes (e.g. //../),
otherwise the .db file cannot be accessed.

Put out a new version:

  • Added an Auto connect option
  • Added Artist and Album to the track grid
  • Automatically convert backslashes to forward slashes for .db file and channel data folder when closing the settings form

Hi Chrisjan 

Thanks for your Feedback. Ok I will change the Slashes. But the DB Connection was not the Problem.

Because when I say Native Plex I see a Test Playlist

I cannot connect the Server over the IP Adress. Always the same Error.

And in my Interface under User I have Administrator and a Spanis Name!

I will tried to Night the new Interface

Thanks for your hard Work.

Hi Chrisjan

I have allways no Connection to my PMS

On the Plex Error2 you can see I have a Connection to the Database.

Automatic Connect is enabled.

ON Error3 you can see this to Accounts on the DB is connectet.

At least Plex Error3 Show my running Webserver with the Connection Error
 

Making a connection is only issueing an http request to (in your example): http://192.168.1.12:32400

You can enter this url directly in your browser, the result should be an xml formatted message. When Ok, it should look something like:

<MediaContainer size=“14” friendlyName=“Plex” multiuser=“1” myPlex=“1” … other attributes">

<Directory …/>

The playlist manager will look for the property 'friendlyName'.

I see you are getting a 'not authorized' response. Did you change any settings recently on your PMS server (like 'require authentication on local networks')?

In this case, add the ip-address of the pc running the playlist manager to the list of networks that are allowed access without authentication (on the PMS server - settings - network)

Note: I am running PMS in ductch so don't know the exact English names for all the settings.

Hi Chrisjan
After change all Settings and Restart the Server it works now.

I find an issue on the Search

When I am locking under Music with Search Artists
The Artist will be found but I can see never a Track. (Plex Error11)
When I go under Music to All Artists her it works fine. (Plex Error12)

Thanks for your great Support.

Hi Chrisjan

Thank you very mutch. Now the search it works fine.

Just found this plugin and stand-alone manager.
My settings :
Plex database : C:/Users/xxx/AppData/Local/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db
Create SQL : Checked
Direct update to DB : Checked
Include modified tracks only in update : Checked
Plex playlist channel: C:/Users/xxx/AppData/Local/PlexMusicPlaylists/Playlists/Sql
Prefer using data folder : Checked
Playlist Mode : Plex native

I managed to create a playlist called Easy Listening in the manager, and Plex pick it up. But when I change the order of the tracks in the manager and save it, Plex is not changing the order. The log file in the manager says:

Playlist SQL created
Playlist Plex database updated

Even stranger is that whenever I remove an item from the manager track list and update Plex, the count number in Plex rises. I have now removed all tracks in the manager, but the last one (and only left) is not being removed. I get the confirmation button popup, I click yes, and the log info says: Track removed from playlist. But it is still there. In plex the playlist remains empty, so that is correct. If I now add a new track in the manager, I het “one track added”, and it has 2 tracks in the listing. I save, and the log says : Plex updated. In plex I see 2 tracks, and counter is 2. I add a third track in the manager and save. Plex is updated, shows 3 tracks but counter is 4.

In the manager I move track 3 one line up, #2 becomes #3. Save. In plex the move is not visible, same old position, but the counter is 6.

I remove 2 tracks in manager, one left, save. Plex is still showing 4 items and counter is 8.

Clearly something is fishy here … Running latest Plex Version 0.9.16.6 on Windows7. Plex Music Playlist configurator is running on trhe same machine. Please your advice.

Edit: Found out that the only way to get this working is to delete the plex playlist. Do whatever changes you need in the manager, save, and Plex will show the correct playlist, with tracks in the correct order and a correct counter.

Time to start building playlists based on BPM (using virtualDJ for this) and mood, then save and Plex is once again better organized.

Trying to import a m3u file. Import file is W:\Media Server content 3\music\playlist bpm 70-80.m3u. The import screen gives me following information :

Number of tracks 8 – Matched 0.

All tracks have a RED stop sign and I can not import. Can somebody please explain? Thank you :slight_smile:
**
EDIT:**: did some more testing. I noticed that when I manually enter the titel, or part of the titel, that I get a match. Is this default behaviour? Why are the artist name and titel not derived from the mp3 meta tags or file description? Shouldn’t this be done automatically? And what needs to be done to get this automated?

EDIT 2: I see that the Artist and track title are required to be in the M3U file in order to get this transfered to the PlaylistManager. I used VirtualDJ for the playlist creation, and the file only contains the path and file name. So that explains it. Could it be possible to let Playlisy manager guess the artist and track, based on the file name? I f.ex always use - .ext. Just an idea :slight_smile: Below I’ll copy a part of the VirtualDJ Wiki, which explains how they read the files:

The tracks title and artist are automatically filled in, if the file is named according to two standard conventions, i.e. (artist) title.ext OR artist - title.ext OR the “Tags” option is set to “Enabled” in the “Config”, “Browser” tab, Infos Gathering section. See the “ID3 tag Support” section of the manual for further details.

I’ve successfully installed the Music Playlist plug-in and Plex Playlist Manager on Windows 10. The Playlist Manager correctly matches my Windows Media Player playlists (exported as m3u files) and identifies the tracks I can save as a Plex Playlist.

However when the playlist is created it’s empty. Also it’s not possible to delete it a message “Not supported yet” is displayed.

Any advice as to where I’m going wrong would be welcome.

Regards

Mike

Can anyone confirm this is still working please? I tried another option and found out after some troubleshooting that its no longer working. Just need to be able to import playlists to plex.

Thanks,

Daryl

I tried on server Version 1.13.9.5456 and it still worked. I used it to steam playlist through UPNP server.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.