-
Notifications
You must be signed in to change notification settings - Fork 1
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
sessions.getSessionHistory filter param does not work? #21
Comments
Updated to 0.23.0 and this still does not seem to work. Am I doing it wrong or is it a bug? |
Hey @BobWithHair, Can you confirm that the local package is up to date? export type GetSessionHistoryRequest = {
/**
* Sorts the results by the specified field followed by the direction (asc, desc)
*
* @remarks
*/
sort?: string | undefined;
/**
* Filter results by those that are related to a specific users id
*
* @remarks
*/
accountId?: number | undefined;
/**
* Filters content by field and direction/equality
*
* @remarks
* (Unknown if viewedAt is the only supported column)
*/
filter?: QueryParamFilter | undefined;
/**
* Filters the results based on the id of a valid library section
*
* @remarks
*/
librarySectionID?: number | undefined;
}; |
Hey @LukeHagar! Sorry, haven't been working on my project in the last week or so. So, yes my package is up to date. Just re-updated it to the most recent 0.23.5 I did and still do see that But could you comment on the syntax I used for the filter in my original post? Because it is not so simple to figure out what syntax is expected to make the filter work |
Running this code:
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:
The lib's source code defines the
Filter
type as an empty object:The only thing helping to try and figure this out is inspecting the Network tab when going in Plex's history page:
The text was updated successfully, but these errors were encountered: