You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
is it possible add the search not only for = but also for > or != or < ?
example:
music = plex.library.section('Musica')
for musica in music.search(title=None, sort=None, maxresults=99999, libtype="album",genre != 'Pop') : #not
for musica in music.search(title=None, sort=None, maxresults=99999, libtype="album",genre = 'Pop') : #contain
for musica in music.search(title=None, sort=None, maxresults=99999, libtype="album",genre == 'Pop') : # equal
for musica in music.search(title=None, sort=None, maxresults=99999, libtype="album",year > 1970) : # major
As for != you can use something like search(title=None, **{'year!': 2000}) (not the most convenient way, but at least this), others aren't supported, afaik.
Activity
worried-networking commentedon Nov 26, 2018
As for != you can use something like
search(title=None, **{'year!': 2000})(not the most convenient way, but at least this), others aren't supported, afaik.Hellowlol commentedon Nov 26, 2018
We should add more filters so we can lean more on pms for searching.
You also have fetchitems where you can use all kinds for operators
Hellowlol commentedon Nov 26, 2018
The easiest way would be to use
see https://python-plexapi.readthedocs.io/en/latest/modules/base.html#plexapi.base.PlexObject.fetchItem more stuff.
blacktwin commentedon Jan 24, 2020
From #392 some of the filters that PMS uses are not able to be used with plexapi for some reason.