Contribute to TVDB

Is it possible to create a custom metadata agent that will contribute to tvdb.com stock metadata agent?  My thought is that I can use my custom scanner to scan my recordings, and use the tvdb.com as primary. IF and only IF the item isn't found, or if the score isn't up to snuff, then pass the media item to the custom metadata agent that we have built.

 

is this possible?  if so can someone point to an example or some sample code that could get me started on how to do this?

Is it possible to create a custom metadata agent that will contribute to tvdb.com stock metadata agent?

Yes, this is possible, but only if the secondary metadata agent can do its own lookups based on the id used by the primary metadata agent.

An example of an agent doing this for TheTVDB is Fanart.tv: https://github.com/plexinc-agents/Fanart-TV.bundle/blob/master/Contents/Code/__init__.py#L61

My thought is that I can use my custom scanner to scan my recordings, and use the tvdb.com as primary. IF and only IF the item isn't found, or if the score isn't up to snuff, then pass the media item to the custom metadata agent that we have built.

is this possible?

This is not possible by default. If you write a secondary metadata agent for the TheTVDB metadata agent the primary agent has to make a match before any secondary agents come into action. If no match is found, no other agents will become active.

There is a way to add a fallback agent, see example here: https://github.com/sander1/Yahoo-Movies.bundle/blob/master/Contents/Code/__init__.py#L53, but this requires editing the existing TheTVDB metadata agent in your case.

I fixed my original problems and no longer need to do the above request.  Thank you for the response though.  Here is a link to the solution to my serialization issue

http://forums.plexapp.com/index.php/topic/71694-serialization-error/#entry425537

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