PlexAPI python lib not updating library anymore

Server Version#: 1.16.1.1291
Player Version#: N/A
PlexAPI Python lib Version: 3.1.0 (https://pypi.org/project/PlexAPI/)

I’m not certain if upgrading the server version affected this or if that’s a red herring (because I did an update a couple days ago) but I’ve noticed that my Plex server no longer updates using the python lib.

plex = PlexServer(baseurl="http://myplexip:32400", token="mytoken", timeout=10)

for section in (plex.library.section(section) for section in ["movies", "tvshows"]):
    section.update()

This is the snippet of code I use to update my library. I’ve used the lib’s debug/logging to confirm that the request is being successfully sent (the server returns a 200 OK), but Plex doesn’t seem to update the library at all anymore. This has been working reliably for nearly a year now, so I’m trying to figure out what changed.

Did something change in the latest server update that might be causing it not to update?

did you see Plex Media Server security changes for Synology users

Read through it, not sure that’s what’s going on here. Plex still shows all the media, and everything plays fine - it’s just new things that it isn’t discovering when I hit the API endpoint. When it syncs itself, it appears to pick things up (but it takes a while).

I’d go digging in the logs, but I don’t even know if API requests show up in (which?) log.

Update:

I tried updating with the NPM module (in Node), and here is the resulting payload:

[ { allowSync: true,
    art: '/:/resources/movie-fanart.jpg',
    composite: '/library/sections/1/composite/1562444636',
    filters: true,
    refreshing: true,
    thumb: '/:/resources/movie.png',
    key: '1',
    type: 'movie',
    title: 'movies',
    agent: 'com.plexapp.agents.themoviedb',
    scanner: 'Plex Movie Scanner',
    language: 'en',
    uuid: '2b428567-8a15-4e94-bb22-8deaeddadea6',
    updatedAt: 1562450374,
    createdAt: 1514237708,
    scannedAt: 1562444636,
    Location: [ [Object], [Object], [Object] ] } ]

Clearly it returns data, but you can see the ‘scannedAt’ property is 1562444636 (Saturday, July 6, 2019 8:23:56 PM GMT) and the current time of posting this is Saturday, July 6, 2019 10:49:24 PM GMT — a 2 ½ hour difference. So it appears the update endpoint is not doing its job?

Update 2:

Tried the Node version a couple more times, and I noticed that it does trigger the Plex admin UI’s loading indicator/spinner on the library — which says to me that the library is updating properly when I run the Node version. I’ll start picking apart the Python lib to see what’s up.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.