You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Invalid library sectionID: None" after PlexPartialObject.reload() #1380
For some reason explicitly calling reload() on PlexPartialObject causes this object to lose librarySectionID value which causes any data editing attempts to fail with exception "Invalid library sectionID: None".
I have tried to compare Music Album genres for all albums to a local list, but .search() was loading only 2 genres for each album. To get the full list of genres, album has to be reloaded but after reloading it is not editable.
Then what's the difference? I don't think that Plex version difference alone causes it. I repeated the same test in Python shell on both Jupyter container and on MacOS to exclude environment differences.
No, it's not. It's one of Various Artists albums with incorrect tags. Issue is still reproducible if I randomize search result with .searchAlbums(limit=1, sort='random') and run multiple times.
Activity
krin-san commentedon Mar 4, 2024
Found a quick workaround: store
librarySectionIDvalue beforereload()and restore it after:JonnyWong16 commentedon Mar 5, 2024
I can't reproduce the issue.
krin-san commentedon Mar 5, 2024
Then what's the difference? I don't think that Plex version difference alone causes it. I repeated the same test in Python shell on both Jupyter container and on MacOS to exclude environment differences.
JonnyWong16 commentedon Mar 5, 2024
I honestly don't know.
But it looks like your album doesn't have a title
<Album:110968>. Maybe that's a clue?krin-san commentedon Mar 5, 2024
No, it's not. It's one of
Various Artistsalbums with incorrect tags. Issue is still reproducible if I randomize search result with.searchAlbums(limit=1, sort='random')and run multiple times.