jellyfin-apiclient-python icon indicating copy to clipboard operation
jellyfin-apiclient-python copied to clipboard

Add support for the optional 'date played' parameter in item_played.

Open Touchstone64 opened this issue 9 months ago • 0 comments

The Jellyfin API endpoint /PlayedItems accepts an optional parameter, datePlayed.

If the item specified in the API call is watched in the jellyfin-api-client item_played call, and the caller passes a date value, then UserData["LastPlayedDate"] is set to that date (along with the other changes already made by the endpoint).

This is useful in a project I'm working on to synchronise user data between media servers, Jellyfin being one of them.

Tox tests all pass and the linter is happy.

Touchstone64 avatar May 05 '24 16:05 Touchstone64