Server Version#: 4.51.1
This issue is similar to this one that was closed through inactivity:
I’m hitting the same thing, but I think it really has nothing to do with the API itself and is just PMS not indicating that library and library sections have been updated unless under very narrow conditions.
Basically I’d like to place conditions around when I’d like to call librarySection.update() and leverage attributes like librarySection.updatedAt and librarySection.refreshing, but the former rarely updates and the latter seems to be false always. Note that the .update() call does work and does the eqivalent of “Scan Library Files”.
After digging around a bit, I could only get updatedAt to refresh when explicitly selecting “Scan Library Files” in PMS. It does not appear to refresh when:
- Calling .update() through the PlexAPI (as noted above)
- Setting passive global settings like “Scan My Library Periodically / Scan Interval”.
- Selecting “Scan Library Files” on another device (in my case, a phone running Android via the app).
When looking at the settings for the library section the timestamp isn’t refreshed there, either, so this really doesn’t seem to be an issue with the API itself as much as I can tell.
This makes things pretty confusing for anyone fine-tuning refreshing, recognizing the scanning can be expensive, and doesn’t seem to be an accurate measure of when a given library has last been refreshed.