Is it possible that since october 24 (sorry, don’t know versionn number but it was up-to-date), a call to API /library/sections/#/newest (where # is the library number), don’t return viewCount anymore? Prior to this date, everything is fine. Maybe it’s not updated anymore but I’m sure the episode I’m looking at are marked as viewed in Plex web interface.
I’m running version 1.2.7.2987 under Ubuntu 16.04 using Docker image linuxserver/plex.
I can submit logs and screenshot if necessary but I suspect it won’t help… Someone can reproduce on another Plex installation?
Thank you very much!
viewCount is returned for episode older than october 24 so it’s not that the API don’t return this property. It’s just not updated anymore when the server maked the episode as viewed.
Ok, I’ve made another test. If I backup my watched state to Trakt, reinstall plex, scan library and restore watched state from Trakt, I don’t get viewCount anymore for anything… My watched state are ok in web interface and in Kodi (PlexKodiConnect) but the API don’t publish the information… Any help? Am I in the good place or should I open a bug? Thank you!
PKC does not use the /library/sections/#/newest endpoint, but rather
{server}/library/sections/#/allLeaves?lastViewedAt>=#&updatedAt>=#
See PKC source code on github, https://github.com/croneter/PlexKodiConnect/blob/master/resources/lib/PlexFunctions.py, function GetAllPlexLeaves