Skip to content

Conversation

JonnyWong16
Copy link
Collaborator

@JonnyWong16 JonnyWong16 commented Mar 30, 2021

Description

Adds support for using relative dates in the library search filters. This is the in the last and in not the last operators for date filters in Plex Web.

Example:

# Added in the last 30 days using relative dates
library.search(**{"addedAt>>": "30d"})

# Added in not the last 30 days using relative dates
library.search(**{"addedAt<<": "30d"})

Fixes #716

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the docstring for new or existing methods
  • I have added tests when applicable

@jjlawren jjlawren merged commit 19fa6c1 into pushingkarmaorg:master Apr 5, 2021
@JonnyWong16 JonnyWong16 deleted the bugfix/library_search_date branch May 13, 2021 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing date search operators

2 participants