-
Notifications
You must be signed in to change notification settings - Fork 199
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
feat: python class for available filters #1322
Comments
I don't see the point of doing this. It overcomplicates things. |
I understand your concern about potential overcomplication, but I would like to reiterate the benefits and the rationale behind this proposed feature as I feel i might have done a poor job in the first place.
here is how it would look if implemented from plexapi.audio import Album, Artist, Track
from plexapi.utils import Filter
# Using Python mappings for filter generation
lib.search(filter=Filter(
Album.genre == "Rock",
Track.rating > 3,
Artist.collection != 'Christmas'
)) I appreciate your time and consideration on this matter, and I am open to further discussion or modifications to address any concerns you may have. |
What is your feature request?
search(title=None, libtype=None, **kwargs)
and other methods which rely on kwargs for search would be able to accept this filter object
will add editor support for filters
Are there any workarounds?
currently one needs to refer documentation for this and pass in the filters as kwargs, which do not give proper developer support
Code Snippets
No response
Additional Context
somehting like this
The text was updated successfully, but these errors were encountered: