jellyfin-apiclient-python
jellyfin-apiclient-python copied to clipboard
Add support for the optional 'date played' parameter in item_played.
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.