Describe the Bug
The Libraries disappear from Plex WebUI and Apps everytime I use a PlexApi script. However I dont see any errors in Plex service or logs. The Libraries appear after I restart the Plex Service, which is a bit tedious to do every time.
Ths issue specifically come after runng the "switchUser" class from PlexServer:
userPlex = plex.switchUser("Normal User")

Code Snippets
fromplexapi.serverimportPlexServerbaseurl='http://192.168.1.1:32400'token='xxxxxxxxxxxxxx'plex=PlexServer(baseurl, token)
userPlex=plex.switchUser("MyUser")
library= ['My Movies','Tv Shows']
forlibinlibrary:
print(lib,'\n')
movies=userPlex.library.section(lib)
forvideoinmovies.search(userRating=1):
print("Deleting: ", video.title, "Rating: ", video.userRating)
print(video.locations)
#video.deleteExpected Behavior
Plex Libraries should not disappear after running plexapi's switchuser function.
Additional Context
No response
Operating System and Version
Raspbian GNU/Linux 11 (bullseye) Kernel 6.1.47-v8+ aarch64 GNU/Linux
Plex Media Server Version
Version 4.116.1
Python Version
Python 3.9.2
PlexAPI Version
4.15.7
Describe the Bug
The Libraries disappear from Plex WebUI and Apps everytime I use a PlexApi script. However I dont see any errors in Plex service or logs. The Libraries appear after I restart the Plex Service, which is a bit tedious to do every time.
Ths issue specifically come after runng the "switchUser" class from PlexServer:
userPlex = plex.switchUser("Normal User")
Code Snippets
Expected Behavior
Plex Libraries should not disappear after running plexapi's switchuser function.
Additional Context
No response
Operating System and Version
Raspbian GNU/Linux 11 (bullseye) Kernel 6.1.47-v8+ aarch64 GNU/Linux
Plex Media Server Version
Version 4.116.1
Python Version
Python 3.9.2
PlexAPI Version
4.15.7