vladimir-tutin / Plex-Auto-Collections

Python 3 script to automatically update Plex collections based off a configuration file
123 stars 57 forks source link

Custom Filters? #17

Open gehrleib opened 4 years ago

gehrleib commented 4 years ago

Would it be possible to do filters like...

  Comedy:
    genre: Comedy but not if it includes Romance
  Romantic Comedy:
    genre: Romance AND Comedy
burkasaurusrex commented 4 years ago

I don't believe this possible, primarily due to some limitations of Plex. This script uses Plex's search to select movies. When you perform a search or a filter in Plex, Plex ANDs together different filters (e.g. Year >= 1990 AND Critic Rating >= 7.0). Unfortunately, when you do multiple of the same filters, in Plex, Plex ORs together multiple filters (e.g. Genre = Comedy OR Genre = Romance).

tldr; you can create a collection with this script for any view you can filter your movie library down to in the web UI + a couple more (subfilters based on audio language, subtitle language and video-resolution).

meisnate12 commented 3 years ago

i think you might be able to accomplish Romantic Comedy right now by doing

  Romantic Comedy:
    genre: Romance
    subfilters:
        genre: Comedy

also we might be able to add a not flag to allow Comedy but not Romantic

  Not Romantic Comedy:
    genre: Comedy
    subfilters:
        genre!: Romance
meisnate12 commented 3 years ago

actually, after extensive research, this is possible right now just do this

  Not Romantic Comedy:
    genre!: Romance
    subfilters:
        genre: Comedy