-
Notifications
You must be signed in to change notification settings - Fork 201
Description
I'm currently in the process of migrating my old XBMC-based playlists into Plex. However, the majority of my playlists are "smart" playlists, which xbmc saves as xml files of the following format:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="songs">
<name>Cthulhu</name>
<match>one</match>
<rule field="artist" operator="is">Nox Arcana</rule>
<rule field="artist" operator="contains">Musica Cthulhiana</rule>
<order direction="ascending">random</order>
</smartplaylist>
Looking at the interactive interface to create smart playlists in plex, it seems that there's pretty much a 1:1 mapping of the xml file to the plex smart playlist definition.
However, trying to use the smart playlist feature with plexapi to batch-convert my playlists, I have a bunch of questions:
- the creation requests a
kwargs
argument that should map to the categories. However, it's unclear how for example the operators (is, contains, ...) are supposed to be passed over - the playlists created with this method are broken, that is, they just contain the entire library, and clicking on the "Edit Filters" button in the GUI doesn't actually do anything, which also makes it hard to debug/understand what exactly is going wrong here
It would be nice if the SmartPlaylist feature could be bugfixed or at the very least documented a bit better to make clear how the operators are supposed to be passed along, and to throw specific error messages when an illegal request has been made that would lead to a broken playlist.