Skip to content

sessions.getSessionHistory filter param does not work? #21

Description

@BobWithHair

Running this code:

const response = await plexAPI.sessions.getSessionHistory(
  'viewedAt:desc',
  undefined,
  { viewedAt: '>=1723511329' }
);

Sends this url: http://<MY_PLEX_SERVER>/status/sessions/history/all?sort=viewedAt%3Adesc

So as you can see, the filter is completely omitted. The documentation doesn't say anything outside of:

image

The lib's source code defines the Filter type as an empty object:

image

The only thing helping to try and figure this out is inspecting the Network tab when going in Plex's history page:

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions