For example when adding a movie and selecting the Director, only that one specific movie will be filtered, despite me having several others by the same director. Same thing for selecting one of the actors listed. And when going to the main Movie library page and filtering form there, I see these Directors and Actors listed twice. This happened to the last 4 or 5 movies I added so something recent is breaking this.
Did you recently change the default agent for your library but not refresh the libraryâs metadata? This could explain the disconnect between new additions vs. existing items.
This is an expected side-effect of fixing a very old bug where we could not discern people with the same name and would always overwrite their data with the latest data from the most recently refreshed item.
We now store people uniquely when adding new items or refreshing old items, but this wonât fix existing items until they are refreshed. We have also added checks that run at PMS startup and when running a database optimize that will correct duplicate items, so these things should self-correct over time.
Take note that this only applies to items using the modern metadata agents, if you still have items on legacy agents inside a modern library the only way to fix these will be to refresh their metadata, running a âRefresh All Metadataâ on the library would be the simplest option here. Libraries only using legacy agents are unaffected by this but will also still exhibit the bug explained in the first paragraph.
Thanks. The optimize database also resolves the issue for me, but I have to run the optimize database function any time I add movies in order for the actors to be linked properly. If this is the expected behavior, can we get a way to schedule the optimize database more frequently than once per week? Or, better yet, can the specific optimize function that fixes this issue be performed when scanning a library?
Best thing is to just refresh metadata for the whole library.
The optimize process will happen during scheduled tasks (I believe it runs every 3 days) and the specific fixup for the duplicate actors will also run every time you start the server. This wonât be necessary however once all items have been refreshed.
@drzoidberg33, thank you for explaining the issue. Iâm using the new metadata agents, so according to your post I either have to deal duplicate entries for up to 7 days via the scheduled task âOptimize database every weekâ, or I have to manually optimize the database every time I add something. In my opinion, neither option is great.
Is this something that will ever get resolved for those on the new metadata agents?
Agreed, a complete refresh of all metadata in the libraries is best here so all actors are updated. As this is a large enough update then a optimise of the db afterwards is good practice.
Iâve not had any trouble since doing this including adding new movies etc⊠All is working well at least for me.
Yes sorry, that may have been confusing wording. What I meant is that the only way to fix it when having mixed legacy / modern items would be a refresh, the automated fixups donât help in this scenario. Refreshing all metadata is the best solution in all cases though.
Thanks but I was talking about the movie posters that I modified one by one⊠Iâm afraid that the metadata refresh will automatically replace all these posters
Ah okay. If you use local assets for posters then plex will never overwrite them. Itâs shouldnât for manually specified ones but that can be tricky so Iâd never recommend that myself.