Tolriq 141 Posted February 12, 2024 Posted February 12, 2024 Since 4.8.1.0 the API only returns 0 for PlayCount and PlaybackPositionTicks for most queries. "UserData": { "PlaybackPositionTicks": 0, "PlayCount": 0, "IsFavorite": true, "Played": true }, It seems that for some users, the Played true is only true for media played after the update to 4.8
adminExitium 355 Posted February 12, 2024 Posted February 12, 2024 Try adding UserDataPlayCount and UserDataLastPlayedDate to your requested fields. Copied from: Per @Luke, this should have been fixed already: 1
Tolriq 141 Posted February 12, 2024 Author Posted February 12, 2024 (edited) Hum I do not recall this change being advertised anywhere Will test that thanks. Edit: It works but slows down queries a lot compare to 4.7 (And as suggested in those posts, if we need to request the field it should not be returned with 0 but not returned at all as a better indicator) Edited February 12, 2024 by Tolriq
adminExitium 355 Posted February 12, 2024 Posted February 12, 2024 Yeah, better documentation is required for this since it's missing on the Swagger docs too. And perhaps an all-encompassing field like EnhancedUserData to return all the available data instead of discovering the missing fields 1 by 1.
Luke 42077 Posted February 13, 2024 Posted February 13, 2024 Yes agree on all points here. UserDataPlayCount is an optional field now. But the playback position ticks don't require requesting any specific field. That still comes back without having to do anything.
Tolriq 141 Posted February 14, 2024 Author Posted February 14, 2024 @LukeIs there other fields that moved to optional in 4.8 or a list somewhere? In case there's other changes I need to make.
adminExitium 355 Posted February 14, 2024 Posted February 14, 2024 And will we get something like the EnhancedUserData field too, to avoid needing to request all the user fields individually, in case something else becomes option in the future too?
Luke 42077 Posted February 16, 2024 Posted February 16, 2024 On 2/14/2024 at 2:02 AM, Tolriq said: @LukeIs there other fields that moved to optional in 4.8 or a list somewhere? In case there's other changes I need to make. Hi, just UserDataPlayCount and UserDataLastPlayedDate 1
Slugger 15 Posted February 23, 2024 Posted February 23, 2024 A documented list of breaking changes to the api and a way to subscribe to changes/updates to that document would be much appreciated. I hit this UserDataLastPlayedDate thing in one of my tools. A tool I've been running for four years is suddenly broken and deleting media unsuspectingly post upgrade. Anyways, if there's some way we can be notified of such breaking changes in the future, that would be much appreciated. 1
Luke 42077 Posted February 23, 2024 Posted February 23, 2024 18 hours ago, Slugger said: A documented list of breaking changes to the api and a way to subscribe to changes/updates to that document would be much appreciated. I hit this UserDataLastPlayedDate thing in one of my tools. A tool I've been running for four years is suddenly broken and deleting media unsuspectingly post upgrade. Anyways, if there's some way we can be notified of such breaking changes in the future, that would be much appreciated. Hi, yes agreed. We'll do a better job of this going forward. Thanks.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now