Tolriq 108 Posted February 12 Share Posted February 12 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 Link to comment Share on other sites More sharing options...
adminExitium 173 Posted February 12 Share Posted February 12 Try adding UserDataPlayCount and UserDataLastPlayedDate to your requested fields. Copied from: Per @Luke, this should have been fixed already: 1 Link to comment Share on other sites More sharing options...
Tolriq 108 Posted February 12 Author Share Posted February 12 (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 by Tolriq Link to comment Share on other sites More sharing options...
adminExitium 173 Posted February 12 Share Posted February 12 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. Link to comment Share on other sites More sharing options...
Luke 37066 Posted February 13 Share Posted February 13 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. Link to comment Share on other sites More sharing options...
Tolriq 108 Posted February 14 Author Share Posted February 14 @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. Link to comment Share on other sites More sharing options...
adminExitium 173 Posted February 14 Share Posted February 14 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? Link to comment Share on other sites More sharing options...
Luke 37066 Posted February 16 Share Posted February 16 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 Link to comment Share on other sites More sharing options...
Slugger 12 Posted February 23 Share Posted February 23 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 Link to comment Share on other sites More sharing options...
Luke 37066 Posted February 23 Share Posted February 23 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. Link to comment Share on other sites More sharing options...
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