-
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
Fix: Update guid filter examples for fetchItems #1350
Conversation
it does not work otherwise like "^" anchor is used in the filter
@JonnyWong16 can you comment why it behaves like that? i did not find code that would support that. also thanks for the merge. |
|
So, using |
I don't know what the original design intent was, but it does make more sense to change it to |
making the change: |
i'm wondering that 'startswith': lambda v, q: v.startswith(q),
'istartswith': lambda v, q: v.lower().startswith(q),
'endswith': lambda v, q: v.endswith(q),
'iendswith': lambda v, q: v.lower().endswith(q), if user puts uppercase search keyword the match would not be made. in fact 'iexact': lambda v, q: v.lower() == q.lower(),
'contains': lambda v, q: q in v,
'icontains': lambda v, q: q.lower() in v.lower(), |
I think doing |
q.lower fix: |
Description
Some why
imdb://
orthemoviedb://
regex does not filter the items, feels like pattern has "^" in it added by default.I checked the code and it's not:
python-plexapi/plexapi/base.py
Lines 29 to 30 in 4780026
unless the
re.match
does it magically.but using a complete agent name just works!
also changes
iregex
->regex
, the guids are always lowercase, no need for case insensitive matchadditionally adds "tt12345" for legacy imdb entries
and
<Guid id="xxx">
tag matching example.Type of change
Please delete options that are not relevant.
Checklist: