Skip to content

sessions.getSessionHistory filter param does not work? #21

@BobWithHair

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions