Prevent matching if score under 100.

Hi! I’m looking into forcing Plex to only match content which has a match score of 100.
Would this be possible? I just feel like it is easier to find unmatched content compared to mismatched content.

If you name series based on TheTVDB.com titles or movies on TheMovieDb.org then you will have no mismatch by experience…

It only match automatically if the score is below 80%
You would have to:

  • modify the agent search function to return values lower than the threshold.
  • write an agent to call an other agent function and modify the score to 79 if below let’s say 98

Trailer addict external agent calling

		if   media.primary_agent == 'com.plexapp.agents.imdb':  imdb_id = media.primary_metadata.id
		elif media.primary_agent == 'com.plexapp.agents.themoviedb':
			imdb_id = Core.messaging.call_external_function( 'com.plexapp.agents.themoviedb', 'MessageKit:GetImdbId', kwargs = dict( tmdb_id = media.primary_metadata.id ))  # Get the IMDb id from the Movie Database Agent
			if not imdb_id:  Log("*** Could not find IMDb id for movie with The Movie Database id: %s ***" % (media.primary_metadata.id));  return None
		results.Append(MetadataSearchResult(id = imdb_id, score = 100))

I see that makes sense, I’ll look into modifying the agent I’m currently using. Thank you.

If the agent changes, you will have to modify the agent again to avail of the changes.

I find a pass-though agent more clever and it would help people in the same predicament but other agents as well, and will still work if the main agent changes which makes it a good solution, but never seen it done before.

Here is a blank agent template i wrote if you want to choose the route that benefits the community.
https://github.com/ZeroQI/Hama.bundle/releases/download/v1.0/Empty_Agent_template.bundle.7z

A github project would make sense and i could assist with the code if stuck.

the limit seem 85%, wasn’t far :hushed:

Oh damm, that’s really helpful. I’ll look into both possibilities.