-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
creating smart playlists #551
Comments
Operators can be found here.
What method are you using? Do you have a code snippet? |
Thanks for the link for the operators. Here's a snippet of the code I'm using.
|
Based on the XML from XBMC I'd say that the operators are not 1:1. You'd probably need to form your |
Yes, that's true. I've tried it with some simple replacements, now, but I still get the same behavior: "Broken" smart playlists are created that simply contain my entire music library and where clicking on the "Edit Filters" button doesn't do anything. Here's the call:
Where Am I doing something stupid here? One thing I seem to be missing out on is how to do the boolean operation between the filters - how do I decide if I want the "and" or the "or" of all the filters that I give? (But this seems not to be the main issue at the moment, because getting this wrong would lead to the playlist being empty in this case, and not the playlist being my entire library). |
No, it looks like this feature (creating a smart Playlist) is broken. We'll have to look into it. |
Great, thanks for confirming! If there's anything I can do to help you debug this, please let me know! |
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:
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:
kwargs
argument that should map to the categories. However, it's unclear how for example the operators (is, contains, ...) are supposed to be passed overIt 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.
The text was updated successfully, but these errors were encountered: